1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3 [<!ENTITY mdash "—">]>
5 - Copyright (C) 2004, 2005, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
6 - Copyright (C) 2000, 2001 Internet Software Consortium.
8 - Permission to use, copy, modify, and/or distribute this software for any
9 - purpose with or without fee is hereby granted, provided that the above
10 - copyright notice and this permission notice appear in all copies.
12 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 - PERFORMANCE OF THIS SOFTWARE.
25 <date>Jun 30, 2000</date>
29 <refentrytitle>lwres_config</refentrytitle>
30 <manvolnum>3</manvolnum>
31 <refmiscinfo>BIND9</refmiscinfo>
40 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
45 <holder>Internet Software Consortium.</holder>
50 <refname>lwres_conf_init</refname>
51 <refname>lwres_conf_clear</refname>
52 <refname>lwres_conf_parse</refname>
53 <refname>lwres_conf_print</refname>
54 <refname>lwres_conf_get</refname>
55 <refpurpose>lightweight resolver configuration</refpurpose>
60 <funcsynopsisinfo>#include <lwres/lwres.h></funcsynopsisinfo>
64 <function>lwres_conf_init</function></funcdef>
65 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
70 <function>lwres_conf_clear</function></funcdef>
71 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
76 <function>lwres_conf_parse</function></funcdef>
77 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
78 <paramdef>const char *<parameter>filename</parameter></paramdef>
83 <function>lwres_conf_print</function></funcdef>
84 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
85 <paramdef>FILE *<parameter>fp</parameter></paramdef>
90 <function>lwres_conf_get</function></funcdef>
91 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
97 <title>DESCRIPTION</title>
99 <para><function>lwres_conf_init()</function>
101 <type>lwres_conf_t</type>
102 structure for lightweight resolver context
103 <parameter>ctx</parameter>.
106 <para><function>lwres_conf_clear()</function>
107 frees up all the internal memory used by
109 <type>lwres_conf_t</type>
110 structure in resolver context
111 <parameter>ctx</parameter>.
114 <para><function>lwres_conf_parse()</function>
116 <parameter>filename</parameter>
117 and parses it to initialise the resolver context
118 <parameter>ctx</parameter>'s
119 <type>lwres_conf_t</type>
123 <para><function>lwres_conf_print()</function>
125 <type>lwres_conf_t</type>
126 structure for resolver context
127 <parameter>ctx</parameter>
130 <parameter>fp</parameter>.
135 <title>RETURN VALUES</title>
137 <para><function>lwres_conf_parse()</function>
138 returns <errorcode>LWRES_R_SUCCESS</errorcode>
139 if it successfully read and parsed
140 <parameter>filename</parameter>.
141 It returns <errorcode>LWRES_R_FAILURE</errorcode>
142 if <parameter>filename</parameter>
143 could not be opened or contained incorrect
147 <para><function>lwres_conf_print()</function>
148 returns <errorcode>LWRES_R_SUCCESS</errorcode>
149 unless an error occurred when converting the network addresses to a
150 numeric host address string.
151 If this happens, the function returns
152 <errorcode>LWRES_R_FAILURE</errorcode>.
156 <title>SEE ALSO</title>
158 <refentrytitle>stdio</refentrytitle><manvolnum>3</manvolnum>
161 <refentrytitle>resolver</refentrytitle><manvolnum>5</manvolnum>
167 <para><filename>/etc/resolv.conf</filename>