lwres_config.docbook revision dafcb997e390efa4423883dafd100c975c4095d6
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<!--
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - Copyright (C) 2001 Internet Software Consortium.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe -
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - Permission to use, copy, modify, and distribute this software for any
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - purpose with or without fee is hereby granted, provided that the above
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - copyright notice and this permission notice appear in all copies.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe -
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe - PERFORMANCE OF THIS SOFTWARE.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe-->
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<!-- $Id: lwres_config.docbook,v 1.3 2004/03/05 05:12:56 marka Exp $ -->
f71f7a61dec7c9089378d14493ad564a1dedf0b5neil_a_wilson
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<refentry>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<refentryinfo>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<date>Jun 30, 2000</date>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe</refentryinfo>
62069b4ff68d4488c2ea132e6f9e9cb64725292asin
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<refmeta>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<refentrytitle>lwres_config</refentrytitle>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<manvolnum>3</manvolnum>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<refmiscinfo>BIND9</refmiscinfo>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe</refmeta>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilson<refnamediv>
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilson<refname>lwres_conf_init</refname>
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilson<refname>lwres_conf_clear</refname>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<refname>lwres_conf_parse</refname>
9da44d3de0a7180285a77b7e8d2426a72aca249ejvergara<refname>lwres_conf_print</refname>
<refname>lwres_conf_get</refname>
<refpurpose>lightweight resolver configuration</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>#include &lt;lwres/lwres.h&gt;</funcsynopsisinfo>
<funcprototype>
<funcdef>
void
<function>lwres_conf_init</function></funcdef>
<paramdef>lwres_context_t *ctx</paramdef>
</funcprototype>
<funcprototype>
<funcdef>
void
<function>lwres_conf_clear</function></funcdef>
<paramdef>lwres_context_t *ctx</paramdef>
</funcprototype>
<funcprototype>
<funcdef>
lwres_result_t
<function>lwres_conf_parse</function></funcdef>
<paramdef>lwres_context_t *ctx</paramdef>
<paramdef>const char *filename</paramdef>
</funcprototype>
<funcprototype>
<funcdef>
lwres_result_t
<function>lwres_conf_print</function></funcdef>
<paramdef>lwres_context_t *ctx</paramdef>
<paramdef>FILE *fp</paramdef>
</funcprototype>
<funcprototype>
<funcdef>
lwres_conf_t *
<function>lwres_conf_get</function></funcdef>
<paramdef>lwres_context_t *ctx</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>
<function>lwres_conf_init()</function>
creates an empty
<type>lwres_conf_t</type>
structure for lightweight resolver context
<parameter>ctx</parameter>.
</para>
<para>
<function>lwres_conf_clear()</function>
frees up all the internal memory used by
that
<type>lwres_conf_t</type>
structure in resolver context
<parameter>ctx</parameter>.
</para>
<para>
<function>lwres_conf_parse()</function>
opens the file
<parameter>filename</parameter>
and parses it to initialise the resolver context
<parameter>ctx</parameter>'s
<type>lwres_conf_t</type>
structure.
</para>
<para>
<function>lwres_conf_print()</function>
prints the
<type>lwres_conf_t</type>
structure for resolver context
<parameter>ctx</parameter>
to the
<type>FILE</type>
<parameter>fp</parameter>.
</para>
</refsect1>
<refsect1>
<title>RETURN VALUES</title>
<para>
<function>lwres_conf_parse()</function>
returns
<errorcode>LWRES_R_SUCCESS</errorcode>
if it successfully read and parsed
<parameter>filename</parameter>.
It returns
<errorcode>LWRES_R_FAILURE</errorcode>
if
<parameter>filename</parameter>
could not be opened or contained incorrect
resolver statements.
</para>
<para>
<function>lwres_conf_print()</function>
returns
<errorcode>LWRES_R_SUCCESS</errorcode>
unless an error occurred when converting the network addresses to a
numeric host address string.
If this happens, the function returns
<errorcode>LWRES_R_FAILURE</errorcode>.
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>
<citerefentry>
<refentrytitle>stdio</refentrytitle><manvolnum>3</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>resolver</refentrytitle><manvolnum>5</manvolnum>
</citerefentry>.
</refsect1>
<refsect1>
<title>FILES</title>
<para>
<filename>/etc/resolv.conf</filename>
</para>
</refsect1>
</refentry>