1LWRES_CONFIG(3) BIND9 LWRES_CONFIG(3)
2
3
4
6 lwres_conf_init, lwres_conf_clear, lwres_conf_parse, lwres_conf_print,
7 lwres_conf_get - lightweight resolver configuration
8
10 #include <lwres/lwres.h>
11
12 void lwres_conf_init(lwres_context_t *ctx);
13
14 void lwres_conf_clear(lwres_context_t *ctx);
15
16 lwres_result_t lwres_conf_parse(lwres_context_t *ctx,
17 const char *filename);
18
19 lwres_result_t lwres_conf_print(lwres_context_t *ctx, FILE *fp);
20
21 lwres_conf_t * lwres_conf_get(lwres_context_t *ctx);
22
24 lwres_conf_init() creates an empty lwres_conf_t structure for
25 lightweight resolver context ctx.
26
27 lwres_conf_clear() frees up all the internal memory used by that
28 lwres_conf_t structure in resolver context ctx.
29
30 lwres_conf_parse() opens the file filename and parses it to initialise
31 the resolver context ctx's lwres_conf_t structure.
32
33 lwres_conf_print() prints the lwres_conf_t structure for resolver
34 context ctx to the FILE fp.
35
37 lwres_conf_parse() returns LWRES_R_SUCCESS if it successfully read and
38 parsed filename. It returns LWRES_R_FAILURE if filename could not be
39 opened or contained incorrect resolver statements.
40
41 lwres_conf_print() returns LWRES_R_SUCCESS unless an error occurred
42 when converting the network addresses to a numeric host address string.
43 If this happens, the function returns LWRES_R_FAILURE.
44
46 stdio(3), resolver(5).
47
49 /etc/resolv.conf
50
52 Copyright © 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
53 Copyright © 2000, 2001 Internet Software Consortium.
54
55
56
57BIND9 Jun 30, 2000 LWRES_CONFIG(3)