5260N/A<!
DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 5260N/A [<!ENTITY mdash "—">]>
5260N/A - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") 5260N/A - Copyright (C) 2000, 2001 Internet Software Consortium. 5260N/A - Permission to use, copy, modify, and/or distribute this software for any 5260N/A - purpose with or without fee is hereby granted, provided that the above 5260N/A - copyright notice and this permission notice appear in all copies. 5260N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 5260N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 5260N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 5260N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 5260N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 5260N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 5260N/A - PERFORMANCE OF THIS SOFTWARE. 5260N/A <
refentrytitle><
application>lwresd</
application></
refentrytitle>
5260N/A <
refmiscinfo>BIND9</
refmiscinfo>
5260N/A <
refname><
application>lwresd</
application></
refname>
5260N/A <
refpurpose>lightweight resolver daemon</
refpurpose>
5260N/A <
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
5260N/A <
holder>Internet Software Consortium.</
holder>
5271N/A <
arg><
option>-c <
replaceable class="parameter">config-file</
replaceable></
option></
arg>
5271N/A <
arg><
option>-C <
replaceable class="parameter">config-file</
replaceable></
option></
arg>
5271N/A <
arg><
option>-d <
replaceable class="parameter">debug-level</
replaceable></
option></
arg>
5271N/A <
arg><
option>-f</
option></
arg>
5271N/A <
arg><
option>-g</
option></
arg>
5271N/A <
arg><
option>-i <
replaceable class="parameter">pid-file</
replaceable></
option></
arg>
5271N/A <
arg><
option>-m <
replaceable class="parameter">flag</
replaceable></
option></
arg>
5271N/A <
arg><
option>-n <
replaceable class="parameter">#cpus</
replaceable></
option></
arg>
5271N/A <
arg><
option>-P <
replaceable class="parameter">port</
replaceable></
option></
arg>
5271N/A <
arg><
option>-p <
replaceable class="parameter">port</
replaceable></
option></
arg>
5271N/A <
arg><
option>-s</
option></
arg>
5271N/A <
arg><
option>-t <
replaceable class="parameter">directory</
replaceable></
option></
arg>
5260N/A <
arg><
option>-u <
replaceable class="parameter">user</
replaceable></
option></
arg>
5260N/A <
arg><
option>-v</
option></
arg>
5260N/A <
arg><
option>-4</
option></
arg>
5260N/A <
arg><
option>-6</
option></
arg>
5260N/A <
para><
command>lwresd</
command>
5260N/A is the daemon providing name lookup
5260N/A services to clients that use the BIND 9 lightweight resolver
5260N/A library. It is essentially a stripped-down, caching-only name
5260N/A server that answers queries using the BIND 9 lightweight
5260N/A resolver protocol rather than the DNS protocol.
5260N/A <
para><
command>lwresd</
command>
5260N/A listens for resolver queries on a
5260N/A UDP port on the IPv4 loopback interface, 127.0.0.1. This
5260N/A means that <
command>lwresd</
command> can only be used by
5260N/A processes running on the local machine. By default UDP port
5260N/A number 921 is used for lightweight resolver requests and
5260N/A Incoming lightweight resolver requests are decoded by the
5260N/A server which then resolves them using the DNS protocol. When
the DNS lookup completes, <
command>lwresd</
command> encodes
the answers in the lightweight resolver format and returns
them to the client that made the request.
<
option>nameserver</
option> entries, <
command>lwresd</
command>
sends recursive DNS queries to those servers. This is similar
to the use of forwarders in a caching name server. If no
<
option>nameserver</
option> entries are present, or if
forwarding fails, <
command>lwresd</
command> resolves the
queries autonomously starting at the root name servers, using
a built-in list of root server hints.
Use IPv4 only even if the host machine is capable of IPv6.
<
option>-4</
option> and <
option>-6</
option> are mutually
Use IPv6 only even if the host machine is capable of IPv4.
<
option>-4</
option> and <
option>-6</
option> are mutually
<!-- this is in source but not mentioned? does this matter? --> <
term>-c <
replaceable class="parameter">config-file</
replaceable></
term>
Use <
replaceable class="parameter">config-file</
replaceable> as the
configuration file instead of the default,
<!-- Should this be an absolute path name? --> <
term>-c</
term> can not be used with <
term>-C</
term>.
<
term>-C <
replaceable class="parameter">config-file</
replaceable></
term>
Use <
replaceable class="parameter">config-file</
replaceable> as the
configuration file instead of the default,
<
term>-C</
term> can not be used with <
term>-c</
term>.
<
term>-d <
replaceable class="parameter">debug-level</
replaceable></
term>
Set the daemon's debug level to <
replaceable class="parameter">debug-level</
replaceable>.
Debugging traces from <
command>lwresd</
command> become
more verbose as the debug level increases.
Run the server in the foreground (
i.e. do not daemonize).
Run the server in the foreground and force all logging
to <
filename>stderr</
filename>.
<
term>-i <
replaceable class="parameter">pid-file</
replaceable></
term>
Use <
replaceable class="parameter">pid-file</
replaceable> as the
PID file instead of the default,
<
term>-m <
replaceable class="parameter">flag</
replaceable></
term>
Turn on memory usage debugging flags. Possible flags are
<
replaceable class="parameter">usage</
replaceable>,
<
replaceable class="parameter">trace</
replaceable>,
<
replaceable class="parameter">record</
replaceable>,
<
replaceable class="parameter">size</
replaceable>, and
<
replaceable class="parameter">mctx</
replaceable>.
These correspond to the ISC_MEM_DEBUGXXXX flags described in
<
term>-n <
replaceable class="parameter">#cpus</
replaceable></
term>
Create <
replaceable class="parameter">#cpus</
replaceable> worker threads
to take advantage of multiple CPUs. If not specified,
<
command>lwresd</
command> will try to determine the
number of CPUs present and create one thread per CPU.
If it is unable to determine the number of CPUs, a
single worker thread will be created.
<
term>-P <
replaceable class="parameter">port</
replaceable></
term>
Listen for lightweight resolver queries on port
<
replaceable class="parameter">port</
replaceable>. If
not specified, the default is port 921.
<
term>-p <
replaceable class="parameter">port</
replaceable></
term>
Send DNS lookups to port <
replaceable class="parameter">port</
replaceable>. If not
specified, the default is port 53. This provides a
way of testing the lightweight resolver daemon with a
name server that listens for queries on a non-standard
Write memory usage statistics to <
filename>stdout</
filename>
This option is mainly of interest to BIND 9 developers
and may be removed or changed in a future release.
<
term>-t <
replaceable class="parameter">directory</
replaceable></
term>
to <
replaceable class="parameter">directory</
replaceable> after
processing the command line arguments, but before
reading the configuration file.
This option should be used in conjunction with the
<
option>-u</
option> option, as chrooting a process
running as root doesn't enhance security on most
systems; the way <
function>chroot(2)</
function> is
defined allows a process with root privileges to
<
term>-u <
replaceable class="parameter">user</
replaceable></
term>
to <
replaceable class="parameter">user</
replaceable> after completing
privileged operations, such as creating sockets that
listen on privileged ports.
Report the version number and exit.
The default configuration file.
The default process-id file.
<
refentrytitle>named</
refentrytitle><
manvolnum>8</
manvolnum>
<
refentrytitle>lwres</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>resolver</
refentrytitle><
manvolnum>5</
manvolnum>
<
para><
corpauthor>Internet Systems Consortium</
corpauthor>