lwresd.docbook revision 83a28ca274521e15086fc39febde507bcc4e145e
359a38ce40498397028473d956691915ed3e849atavmjong-free - Copyright (C) 2000, 2001, 2004, 2005, 2007-2009, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
359a38ce40498397028473d956691915ed3e849atavmjong-free - This Source Code Form is subject to the terms of the Mozilla Public
359a38ce40498397028473d956691915ed3e849atavmjong-free - License, v. 2.0. If a copy of the MPL was not distributed with this
359a38ce40498397028473d956691915ed3e849atavmjong-free - file, You can obtain one at http://mozilla.org/MPL/2.0/.
359a38ce40498397028473d956691915ed3e849atavmjong-free<!-- Converted by db4-upgrade version 1.0 -->
359a38ce40498397028473d956691915ed3e849atavmjong-free<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.lwresd">
359a38ce40498397028473d956691915ed3e849atavmjong-free <refentryinfo>
359a38ce40498397028473d956691915ed3e849atavmjong-free <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
359a38ce40498397028473d956691915ed3e849atavmjong-free </refentryinfo>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel <refentrytitle><application>lwresd</application></refentrytitle>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel <refnamediv>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel <refname><application>lwresd</application></refname>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel <refpurpose>lightweight resolver daemon</refpurpose>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel </refnamediv>
359a38ce40498397028473d956691915ed3e849atavmjong-free <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
359a38ce40498397028473d956691915ed3e849atavmjong-free <refsynopsisdiv>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-C <replaceable class="parameter">config-file</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-d <replaceable class="parameter">debug-level</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-f</option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-g</option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-i <replaceable class="parameter">pid-file</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-m <replaceable class="parameter">flag</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-n <replaceable class="parameter">#cpus</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-P <replaceable class="parameter">port</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-p <replaceable class="parameter">port</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-s</option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-u <replaceable class="parameter">user</replaceable></option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-v</option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-4</option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free <arg choice="opt" rep="norepeat"><option>-6</option></arg>
359a38ce40498397028473d956691915ed3e849atavmjong-free </cmdsynopsis>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel </refsynopsisdiv>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel <refsection><info><title>DESCRIPTION</title></info>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel is the daemon providing name lookup
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel services to clients that use the BIND 9 lightweight resolver
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel library. It is essentially a stripped-down, caching-only name
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel server that answers queries using the BIND 9 lightweight
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel resolver protocol rather than the DNS protocol.
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel listens for resolver queries on a
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel UDP port on the IPv4 loopback interface, 127.0.0.1. This
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel means that <command>lwresd</command> can only be used by
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel processes running on the local machine. By default, UDP port
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel number 921 is used for lightweight resolver requests and
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel Incoming lightweight resolver requests are decoded by the
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel server which then resolves them using the DNS protocol. When
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel the DNS lookup completes, <command>lwresd</command> encodes
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel the answers in the lightweight resolver format and returns
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel them to the client that made the request.
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel If <filename>/etc/resolv.conf</filename> contains any
35087bff7509c736a32e0b74fd9ff0834bde7b6bMarkus Engel <option>nameserver</option> entries, <command>lwresd</command>
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel sends recursive DNS queries to those servers. This is similar
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel to the use of forwarders in a caching name server. If no
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel <option>nameserver</option> entries are present, or if
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel forwarding fails, <command>lwresd</command> resolves the
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel queries autonomously starting at the root name servers, using
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel a built-in list of root server hints.
eb4b5da8fbdf95f44ae7f0c950e9a07763ebb50fMarkus Engel </refsection>
359a38ce40498397028473d956691915ed3e849atavmjong-free <refsection><info><title>OPTIONS</title></info>
359a38ce40498397028473d956691915ed3e849atavmjong-free <variablelist>
359a38ce40498397028473d956691915ed3e849atavmjong-free <varlistentry>
Run the server in the foreground (i.e. do not daemonize).