286N/A - Copyright (C) 2000-2017 Internet Systems Consortium, Inc. ("ISC") 286N/A - This Source Code Form is subject to the terms of the Mozilla Public 286N/A - License, v. 2.0. If a copy of the MPL was not distributed with this 286N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
286N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
286N/A<
link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
286N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
286N/A<
table width="100%" summary="Navigation header">
286N/A<
tr><
th colspan="3" align="center"><
span class="application">lwresd</
span></
th></
tr>
286N/A<
td width="20%" align="left">
286N/A<
th width="60%" align="center">Manual pages</
th>
286N/A <
div class="refnamediv">
286N/A <
span class="application">lwresd</
span>
286N/A — lightweight resolver daemon
286N/A <
div class="refsynopsisdiv">
286N/A <
div class="cmdsynopsis"><
p>
286N/A <
code class="command">lwresd</
code>
286N/A [<
code class="option">-c <
em class="replaceable"><
code>config-file</
code></
em></
code>]
286N/A [<
code class="option">-C <
em class="replaceable"><
code>config-file</
code></
em></
code>]
286N/A [<
code class="option">-d <
em class="replaceable"><
code>debug-level</
code></
em></
code>]
286N/A [<
code class="option">-f</
code>]
286N/A [<
code class="option">-g</
code>]
286N/A [<
code class="option">-i <
em class="replaceable"><
code>pid-file</
code></
em></
code>]
286N/A [<
code class="option">-m <
em class="replaceable"><
code>flag</
code></
em></
code>]
286N/A [<
code class="option">-n <
em class="replaceable"><
code>#cpus</
code></
em></
code>]
286N/A [<
code class="option">-P <
em class="replaceable"><
code>port</
code></
em></
code>]
286N/A [<
code class="option">-p <
em class="replaceable"><
code>port</
code></
em></
code>]
286N/A [<
code class="option">-s</
code>]
286N/A [<
code class="option">-t <
em class="replaceable"><
code>directory</
code></
em></
code>]
286N/A [<
code class="option">-u <
em class="replaceable"><
code>user</
code></
em></
code>]
286N/A [<
code class="option">-v</
code>]
286N/A [<
code class="option">-4</
code>]
286N/A | [<
code class="option">-6</
code>]
286N/A <
div class="refsection">
286N/A<
a name="id-1.14.18.7"></
a><
h2>DESCRIPTION</
h2>
286N/A <
p><
span class="command"><
strong>lwresd</
strong></
span>
286N/A is the daemon providing name lookup
286N/A services to clients that use the BIND 9 lightweight resolver
286N/A library. It is essentially a stripped-down, caching-only name
286N/A server that answers queries using the BIND 9 lightweight
286N/A resolver protocol rather than the DNS protocol.
286N/A <
p><
span class="command"><
strong>lwresd</
strong></
span>
286N/A listens for resolver queries on a
286N/A UDP port on the IPv4 loopback interface, 127.0.0.1. This
286N/A means that <
span class="command"><
strong>lwresd</
strong></
span> can only be used by
286N/A processes running on the local machine. By default, UDP port
286N/A number 921 is used for lightweight resolver requests and
286N/A Incoming lightweight resolver requests are decoded by the
286N/A server which then resolves them using the DNS protocol. When
286N/A the DNS lookup completes, <
span class="command"><
strong>lwresd</
strong></
span> encodes
286N/A the answers in the lightweight resolver format and returns
286N/A them to the client that made the request.
286N/A <
code class="option">nameserver</
code> entries, <
span class="command"><
strong>lwresd</
strong></
span>
286N/A sends recursive DNS queries to those servers. This is similar
286N/A to the use of forwarders in a caching name server. If no
286N/A <
code class="option">nameserver</
code> entries are present, or if
286N/A forwarding fails, <
span class="command"><
strong>lwresd</
strong></
span> resolves the
286N/A queries autonomously starting at the root name servers, using
286N/A a built-in list of root server hints.
286N/A <
div class="refsection">
286N/A<
a name="id-1.14.18.8"></
a><
h2>OPTIONS</
h2>
286N/A <
div class="variablelist"><
dl class="variablelist">
286N/A<
dt><
span class="term">-4</
span></
dt>
286N/A Use IPv4 only even if the host machine is capable of IPv6.
286N/A <
code class="option">-4</
code> and <
code class="option">-6</
code> are mutually
286N/A<
dt><
span class="term">-6</
span></
dt>
286N/A Use IPv6 only even if the host machine is capable of IPv4.
286N/A <
code class="option">-4</
code> and <
code class="option">-6</
code> are mutually
286N/A<
dt><
span class="term">-c <
em class="replaceable"><
code>config-file</
code></
em></
span></
dt>
286N/A Use <
em class="replaceable"><
code>config-file</
code></
em> as the
286N/A configuration file instead of the default,
286N/A <
code class="option">-c</
code> can not be used with <
code class="option">-C</
code>.
286N/A<
dt><
span class="term">-C <
em class="replaceable"><
code>config-file</
code></
em></
span></
dt>
286N/A Use <
em class="replaceable"><
code>config-file</
code></
em> as the
286N/A configuration file instead of the default,
286N/A <
code class="option">-C</
code> can not be used with <
code class="option">-c</
code>.
286N/A<
dt><
span class="term">-d <
em class="replaceable"><
code>debug-level</
code></
em></
span></
dt>
286N/A Set the daemon's debug level to <
em class="replaceable"><
code>debug-level</
code></
em>.
286N/A Debugging traces from <
span class="command"><
strong>lwresd</
strong></
span> become
286N/A more verbose as the debug level increases.
286N/A<
dt><
span class="term">-f</
span></
dt>
286N/A Run the server in the foreground (
i.e. do not daemonize).
286N/A<
dt><
span class="term">-g</
span></
dt>
286N/A Run the server in the foreground and force all logging
286N/A to <
code class="filename">stderr</
code>.
286N/A<
dt><
span class="term">-i <
em class="replaceable"><
code>pid-file</
code></
em></
span></
dt>
286N/A Use <
em class="replaceable"><
code>pid-file</
code></
em> as the
286N/A PID file instead of the default,
286N/A<
dt><
span class="term">-m <
em class="replaceable"><
code>flag</
code></
em></
span></
dt>
286N/A Turn on memory usage debugging flags. Possible flags are
286N/A <
em class="replaceable"><
code>usage</
code></
em>,
286N/A <
em class="replaceable"><
code>trace</
code></
em>,
286N/A <
em class="replaceable"><
code>record</
code></
em>,
286N/A <
em class="replaceable"><
code>size</
code></
em>, and
286N/A <
em class="replaceable"><
code>mctx</
code></
em>.
286N/A These correspond to the ISC_MEM_DEBUGXXXX flags described in
286N/A<
dt><
span class="term">-n <
em class="replaceable"><
code>#cpus</
code></
em></
span></
dt>
286N/A Create <
em class="replaceable"><
code>#cpus</
code></
em> worker threads
286N/A to take advantage of multiple CPUs. If not specified,
286N/A <
span class="command"><
strong>lwresd</
strong></
span> will try to determine the
286N/A number of CPUs present and create one thread per CPU.
286N/A If it is unable to determine the number of CPUs, a
286N/A single worker thread will be created.
286N/A<
dt><
span class="term">-P <
em class="replaceable"><
code>port</
code></
em></
span></
dt>
286N/A Listen for lightweight resolver queries on port
286N/A <
em class="replaceable"><
code>port</
code></
em>. If
286N/A not specified, the default is port 921.
286N/A<
dt><
span class="term">-p <
em class="replaceable"><
code>port</
code></
em></
span></
dt>
286N/A Send DNS lookups to port <
em class="replaceable"><
code>port</
code></
em>. If not
286N/A specified, the default is port 53. This provides a
286N/A way of testing the lightweight resolver daemon with a
286N/A name server that listens for queries on a non-standard
286N/A<
dt><
span class="term">-s</
span></
dt>
286N/A Write memory usage statistics to <
code class="filename">stdout</
code>
286N/A <
div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
286N/A<
h3 class="title">Note</
h3>
286N/A This option is mainly of interest to BIND 9 developers
286N/A and may be removed or changed in a future release.
286N/A<
dt><
span class="term">-t <
em class="replaceable"><
code>directory</
code></
em></
span></
dt>
286N/A to <
em class="replaceable"><
code>directory</
code></
em> after
286N/A processing the command line arguments, but before
286N/A reading the configuration file.
286N/A <
div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
286N/A<
h3 class="title">Warning</
h3>
286N/A This option should be used in conjunction with the
286N/A <
code class="option">-u</
code> option, as chrooting a process
286N/A running as root doesn't enhance security on most
286N/A systems; the way <
code class="function">chroot(2)</
code> is
286N/A defined allows a process with root privileges to
286N/A<
dt><
span class="term">-u <
em class="replaceable"><
code>user</
code></
em></
span></
dt>
286N/A to <
em class="replaceable"><
code>user</
code></
em> after completing
286N/A privileged operations, such as creating sockets that
286N/A listen on privileged ports.
286N/A<
dt><
span class="term">-v</
span></
dt>
286N/A Report the version number and exit.
286N/A <
div class="refsection">
286N/A<
a name="id-1.14.18.9"></
a><
h2>FILES</
h2>
286N/A <
div class="variablelist"><
dl class="variablelist">
286N/A The default configuration file.
286N/A The default process-id file.
286N/A <
div class="refsection">
286N/A<
a name="id-1.14.18.10"></
a><
h2>SEE ALSO</
h2>
286N/A <
p><
span class="citerefentry">
286N/A <
span class="refentrytitle">named</
span>(8)
286N/A <
span class="citerefentry">
286N/A <
span class="refentrytitle">lwres</
span>(3)
286N/A <
span class="citerefentry">
286N/A <
span class="refentrytitle">resolver</
span>(5)
286N/A<
table width="100%" summary="Navigation footer">
286N/A<
td width="40%" align="left">
286N/A<
td width="40%" align="left" valign="top">
286N/A<
span class="application">dnssec-verify</
span>�</
td>
286N/A<
td width="20%" align="center"><
a accesskey="h" href="Bv9ARM.html">Home</
a></
td>
286N/A<
td width="40%" align="right" valign="top">�<
span class="application">named</
span>