2 - Copyright (C) 2004, 2005, 2007, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000, 2001 Internet Software Consortium.
5 - Permission to use, copy, modify, and/or distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
18 <!-- Converted by db4-upgrade version 1.0 -->
19 <refentry xmlns="http://docbook.org/ns/docbook" version="5.0">
21 <date>2007-06-18</date>
24 <corpname>ISC</corpname>
25 <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
29 <refentrytitle>lwres_config</refentrytitle>
30 <manvolnum>3</manvolnum>
31 <refmiscinfo>BIND9</refmiscinfo>
41 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
46 <holder>Internet Software Consortium.</holder>
51 <refname>lwres_conf_init</refname>
52 <refname>lwres_conf_clear</refname>
53 <refname>lwres_conf_parse</refname>
54 <refname>lwres_conf_print</refname>
55 <refname>lwres_conf_get</refname>
56 <refpurpose>lightweight resolver configuration</refpurpose>
61 <funcsynopsisinfo>#include <lwres/lwres.h></funcsynopsisinfo>
65 <function>lwres_conf_init</function></funcdef>
66 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
71 <function>lwres_conf_clear</function></funcdef>
72 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
77 <function>lwres_conf_parse</function></funcdef>
78 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
79 <paramdef>const char *<parameter>filename</parameter></paramdef>
84 <function>lwres_conf_print</function></funcdef>
85 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
86 <paramdef>FILE *<parameter>fp</parameter></paramdef>
91 <function>lwres_conf_get</function></funcdef>
92 <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
97 <refsection><info><title>DESCRIPTION</title></info>
100 <para><function>lwres_conf_init()</function>
102 <type>lwres_conf_t</type>
103 structure for lightweight resolver context
104 <parameter>ctx</parameter>.
107 <para><function>lwres_conf_clear()</function>
108 frees up all the internal memory used by
110 <type>lwres_conf_t</type>
111 structure in resolver context
112 <parameter>ctx</parameter>.
115 <para><function>lwres_conf_parse()</function>
117 <parameter>filename</parameter>
118 and parses it to initialise the resolver context
119 <parameter>ctx</parameter>'s
120 <type>lwres_conf_t</type>
124 <para><function>lwres_conf_print()</function>
126 <type>lwres_conf_t</type>
127 structure for resolver context
128 <parameter>ctx</parameter>
131 <parameter>fp</parameter>.
134 <refsection><info><title>RETURN VALUES</title></info>
138 <para><function>lwres_conf_parse()</function>
139 returns <errorcode>LWRES_R_SUCCESS</errorcode>
140 if it successfully read and parsed
141 <parameter>filename</parameter>.
142 It returns <errorcode>LWRES_R_FAILURE</errorcode>
143 if <parameter>filename</parameter>
144 could not be opened or contained incorrect
148 <para><function>lwres_conf_print()</function>
149 returns <errorcode>LWRES_R_SUCCESS</errorcode>
150 unless an error occurred when converting the network addresses to a
151 numeric host address string.
152 If this happens, the function returns
153 <errorcode>LWRES_R_FAILURE</errorcode>.
156 <refsection><info><title>SEE ALSO</title></info>
159 <refentrytitle>stdio</refentrytitle><manvolnum>3</manvolnum>
162 <refentrytitle>resolver</refentrytitle><manvolnum>5</manvolnum>
166 <refsection><info><title>FILES</title></info>
168 <para><filename>/etc/resolv.conf</filename>