2 - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2001 Internet Software Consortium.
5 - Permission to use, copy, modify, and 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 <!-- $Id: lwres_config.html,v 1.4.2.2 2004/03/15 04:45:01 marka Exp $ -->
26 CONTENT="Modular DocBook HTML Stylesheet Version 1.73
47 >lwres_conf_init, lwres_conf_clear, lwres_conf_parse, lwres_conf_print, lwres_conf_get -- lightweight resolver configuration</DIV
49 CLASS="REFSYNOPSISDIV"
63 CLASS="FUNCSYNOPSISINFO"
64 >#include <lwres/lwres.h></PRE
71 >(lwres_context_t *ctx);</CODE
78 lwres_conf_clear</CODE
79 >(lwres_context_t *ctx);</CODE
86 lwres_conf_parse</CODE
87 >(lwres_context_t *ctx, const char *filename);</CODE
94 lwres_conf_print</CODE
95 >(lwres_context_t *ctx, FILE *fp);</CODE
103 >(lwres_context_t *ctx);</CODE
119 >lwres_conf_init()</TT
126 structure for lightweight resolver context
136 >lwres_conf_clear()</TT
138 frees up all the internal memory used by
144 structure in resolver context
154 >lwres_conf_parse()</TT
163 and parses it to initialise the resolver context
178 >lwres_conf_print()</TT
185 structure for resolver context
214 >lwres_conf_parse()</TT
219 >LWRES_R_SUCCESS</SPAN
221 if it successfully read and parsed
231 >LWRES_R_FAILURE</SPAN
240 could not be opened or contained incorrect
241 resolver statements.</P
245 >lwres_conf_print()</TT
250 >LWRES_R_SUCCESS</SPAN
252 unless an error occurred when converting the network addresses to a
253 numeric host address string.
254 If this happens, the function returns
257 >LWRES_R_FAILURE</SPAN
271 CLASS="REFENTRYTITLE"
278 CLASS="REFENTRYTITLE"
293 >/etc/resolv.conf</TT