$NetBSD: lwres_config.3,v 1.5 2014/12/10 04:38:02 christos Exp $

Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
Copyright (C) 2000, 2001 Internet Software Consortium.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Id

Title: lwres_config
Author:
Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
Date: June 18, 2007
Manual: BIND9
Source: BIND9

"LWRES_CONFIG" "3" "June 18, 2007" "BIND9" "BIND9"
disable hyphenation
disable justification (adjust text to left margin only)
"NAME"
lwres_conf_init, lwres_conf_clear, lwres_conf_parse, lwres_conf_print, lwres_conf_get - lightweight resolver configuration
"SYNOPSIS"
#include <lwres/lwres.h>

21 "void lwres_conf_init(lwres_context_t *" "ctx" ");"

22 "void lwres_conf_clear(lwres_context_t *" "ctx" ");"

32 "lwres_result_t lwres_conf_parse(lwres_context_t *" "ctx" ", const char *" "filename" ");"

32 "lwres_result_t lwres_conf_print(lwres_context_t *" "ctx" ", FILE *" "fp" ");"

30 "lwres_conf_t * lwres_conf_get(lwres_context_t *" "ctx" ");"

"DESCRIPTION"

lwres_conf_init() creates an empty lwres_conf_t structure for lightweight resolver context ctx.

lwres_conf_clear() frees up all the internal memory used by that lwres_conf_t structure in resolver context ctx.

lwres_conf_parse() opens the file filename and parses it to initialise the resolver context ctx's lwres_conf_t structure.

lwres_conf_print() prints the lwres_conf_t structure for resolver context ctx to the FILE fp.

"RETURN VALUES"

lwres_conf_parse() returns LWRES_R_SUCCESS if it successfully read and parsed filename. It returns LWRES_R_FAILURE if filename could not be opened or contained incorrect resolver statements.

lwres_conf_print() returns LWRES_R_SUCCESS unless an error occurred when converting the network addresses to a numeric host address string. If this happens, the function returns LWRES_R_FAILURE.

"SEE ALSO"

stdio(3), resolver(5).

"FILES"

/etc/resolv.conf

"COPYRIGHT"
Copyright \(co 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")

Copyright \(co 2000, 2001 Internet Software Consortium.