man.lwresd.html revision c313914d0e66b20969215e519bbf2ab4ecf39512
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock - Copyright (C) 2000-2018 Internet Systems Consortium, Inc. ("ISC")
53089ab7c84db6fb76c16ca50076c147cda11757eschrock - This Source Code Form is subject to the terms of the Mozilla Public
53089ab7c84db6fb76c16ca50076c147cda11757eschrock - License, v. 2.0. If a copy of the MPL was not distributed with this
53089ab7c84db6fb76c16ca50076c147cda11757eschrock - file, You can obtain one at http://mozilla.org/MPL/2.0/.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<link rel="prev" href="man.dnssec-verify.html" title="dnssec-verify">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<link rel="next" href="man.named.html" title="named">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<tr><th colspan="3" align="center"><span class="application">lwresd</span></th></tr>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<a accesskey="p" href="man.dnssec-verify.html">Prev</a>�</td>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<td width="20%" align="right">�<a accesskey="n" href="man.named.html">Next</a>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<a name="man.lwresd"></a><div class="titlepage"></div>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock — lightweight resolver daemon
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-c <em class="replaceable"><code>config-file</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-C <em class="replaceable"><code>config-file</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-d <em class="replaceable"><code>debug-level</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-i <em class="replaceable"><code>pid-file</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-m <em class="replaceable"><code>flag</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-n <em class="replaceable"><code>#cpus</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-P <em class="replaceable"><code>port</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-p <em class="replaceable"><code>port</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock [<code class="option">-u <em class="replaceable"><code>user</code></em></code>]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <p><span class="command"><strong>lwresd</strong></span>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock is the daemon providing name lookup
53089ab7c84db6fb76c16ca50076c147cda11757eschrock services to clients that use the BIND 9 lightweight resolver
53089ab7c84db6fb76c16ca50076c147cda11757eschrock library. It is essentially a stripped-down, caching-only name
53089ab7c84db6fb76c16ca50076c147cda11757eschrock server that answers queries using the BIND 9 lightweight
53089ab7c84db6fb76c16ca50076c147cda11757eschrock resolver protocol rather than the DNS protocol.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <p><span class="command"><strong>lwresd</strong></span>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock listens for resolver queries on a
53089ab7c84db6fb76c16ca50076c147cda11757eschrock UDP port on the IPv4 loopback interface, 127.0.0.1. This
53089ab7c84db6fb76c16ca50076c147cda11757eschrock means that <span class="command"><strong>lwresd</strong></span> can only be used by
53089ab7c84db6fb76c16ca50076c147cda11757eschrock processes running on the local machine. By default, UDP port
53089ab7c84db6fb76c16ca50076c147cda11757eschrock number 921 is used for lightweight resolver requests and
53089ab7c84db6fb76c16ca50076c147cda11757eschrock Incoming lightweight resolver requests are decoded by the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock server which then resolves them using the DNS protocol. When
53089ab7c84db6fb76c16ca50076c147cda11757eschrock the DNS lookup completes, <span class="command"><strong>lwresd</strong></span> encodes
53089ab7c84db6fb76c16ca50076c147cda11757eschrock the answers in the lightweight resolver format and returns
53089ab7c84db6fb76c16ca50076c147cda11757eschrock them to the client that made the request.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock If <code class="filename">/etc/resolv.conf</code> contains any
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <code class="option">nameserver</code> entries, <span class="command"><strong>lwresd</strong></span>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock sends recursive DNS queries to those servers. This is similar
53089ab7c84db6fb76c16ca50076c147cda11757eschrock to the use of forwarders in a caching name server. If no
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <code class="option">nameserver</code> entries are present, or if
53089ab7c84db6fb76c16ca50076c147cda11757eschrock forwarding fails, <span class="command"><strong>lwresd</strong></span> resolves the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock queries autonomously starting at the root name servers, using
53089ab7c84db6fb76c16ca50076c147cda11757eschrock a built-in list of root server hints.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <div class="variablelist"><dl class="variablelist">
53089ab7c84db6fb76c16ca50076c147cda11757eschrock Use IPv4 only even if the host machine is capable of IPv6.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <code class="option">-4</code> and <code class="option">-6</code> are mutually
53089ab7c84db6fb76c16ca50076c147cda11757eschrock Use IPv6 only even if the host machine is capable of IPv4.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <code class="option">-4</code> and <code class="option">-6</code> are mutually
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<dt><span class="term">-c <em class="replaceable"><code>config-file</code></em></span></dt>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock Use <em class="replaceable"><code>config-file</code></em> as the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock configuration file instead of the default,
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <code class="option">-c</code> can not be used with <code class="option">-C</code>.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<dt><span class="term">-C <em class="replaceable"><code>config-file</code></em></span></dt>
53089ab7c84db6fb76c16ca50076c147cda11757eschrock Use <em class="replaceable"><code>config-file</code></em> as the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock configuration file instead of the default,
53089ab7c84db6fb76c16ca50076c147cda11757eschrock <code class="option">-C</code> can not be used with <code class="option">-c</code>.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock<dt><span class="term">-d <em class="replaceable"><code>debug-level</code></em></span></dt>
f17457368189aa911f774c38c1f21875a568bdcaMatthew Ahrens Set the daemon's debug level to <em class="replaceable"><code>debug-level</code></em>.
f17457368189aa911f774c38c1f21875a568bdcaMatthew Ahrens Debugging traces from <span class="command"><strong>lwresd</strong></span> become
f17457368189aa911f774c38c1f21875a568bdcaMatthew Ahrens more verbose as the debug level increases.
Run the server in the foreground (i.e. do not daemonize).
<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.11.3 (Extended Support Version)</p>