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