lwresd.docbook revision c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85
2454dfa32c93c20a8522c6ed42fe057baaac9f9aStephan Bosch<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen [<!ENTITY mdash "—">]>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
419be6cd72f6e11705576bbba683b29c32eaa762Timo Sirainen - Copyright (C) 2000, 2001 Internet Software Consortium.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen - Permission to use, copy, modify, and distribute this software for any
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen - purpose with or without fee is hereby granted, provided that the above
42abccd9b2a5a4190bd3c14ec2dcc10d51c0f491Timo Sirainen - copyright notice and this permission notice appear in all copies.
458acd7b39c84bae0d18c36ff9ddff9a49b4ae4aTimo Sirainen - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
92c27c7db84150bff9e77271f19efc5aec4f214aTimo Sirainen - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
eed56fe22f1fc61f2003d5e66373d03dacbc9aaaTimo Sirainen - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
458acd7b39c84bae0d18c36ff9ddff9a49b4ae4aTimo Sirainen - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen - PERFORMANCE OF THIS SOFTWARE.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen<!-- $Id: lwresd.docbook,v 1.12 2007/01/29 23:57:22 marka Exp $ -->
98720d3b830e8ec762e9bdde94a71c0ef184595dTimo Sirainen <refentryinfo>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen </refentryinfo>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen <refentrytitle><application>lwresd</application></refentrytitle>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen <refname><application>lwresd</application></refname>
db693bf6fcae96d834567f1782257517b7207655Timo Sirainen <refpurpose>lightweight resolver daemon</refpurpose>
2fb9ae42f9e36388ec6db24188b9108434043fd0Timo Sirainen </refnamediv>
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo Sirainen <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki Tuomi </copyright>
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki Tuomi <refsynopsisdiv>
f33cd5b8b44175256eb92bec51a60ad8fb98bbe0Timo Sirainen <cmdsynopsis>
f33cd5b8b44175256eb92bec51a60ad8fb98bbe0Timo Sirainen <arg><option>-C <replaceable class="parameter">config-file</replaceable></option></arg>
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo Sirainen <arg><option>-d <replaceable class="parameter">debug-level</replaceable></option></arg>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen <arg><option>-i <replaceable class="parameter">pid-file</replaceable></option></arg>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen <arg><option>-n <replaceable class="parameter">#cpus</replaceable></option></arg>
2fb9ae42f9e36388ec6db24188b9108434043fd0Timo Sirainen <arg><option>-P <replaceable class="parameter">port</replaceable></option></arg>
2fb9ae42f9e36388ec6db24188b9108434043fd0Timo Sirainen <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
efe78d3ba24fc866af1c79b9223dc0809ba26cadStephan Bosch <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
2fb9ae42f9e36388ec6db24188b9108434043fd0Timo Sirainen <arg><option>-u <replaceable class="parameter">user</replaceable></option></arg>
b1c85a1f889a5e71f491e320bdac95df3c9fe550Martti Rannanjärvi </cmdsynopsis>
b1c85a1f889a5e71f491e320bdac95df3c9fe550Martti Rannanjärvi </refsynopsisdiv>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen is the daemon providing name lookup
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen services to clients that use the BIND 9 lightweight resolver
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen library. It is essentially a stripped-down, caching-only name
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen server that answers queries using the BIND 9 lightweight
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen resolver protocol rather than the DNS protocol.
725051a12a40625d79aada33f86993d7b8a18631Timo Sirainen listens for resolver queries on a
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen UDP port on the IPv4 loopback interface, 127.0.0.1. This
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen means that <command>lwresd</command> can only be used by
a3fe8c0c54d87822f4b4f8f0d10caac611861b2bTimo Sirainen processes running on the local machine. By default UDP port
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen number 921 is used for lightweight resolver requests and
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen Incoming lightweight resolver requests are decoded by the
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen server which then resolves them using the DNS protocol. When
4fbf59562594dbbbe037f8d4c480dbf88f3fc708Timo Sirainen the DNS lookup completes, <command>lwresd</command> encodes
4fbf59562594dbbbe037f8d4c480dbf88f3fc708Timo Sirainen the answers in the lightweight resolver format and returns
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen them to the client that made the request.
419be6cd72f6e11705576bbba683b29c32eaa762Timo Sirainen If <filename>/etc/resolv.conf</filename> contains any
705f6fbad395e6f014838e797b7dbcaceafd2f1dTimo Sirainen <option>nameserver</option> entries, <command>lwresd</command>
646817f0cfb39b0e0eb545900f1566b76a851b20Timo Sirainen sends recursive DNS queries to those servers. This is similar
725051a12a40625d79aada33f86993d7b8a18631Timo Sirainen to the use of forwarders in a caching name server. If no
0e35a99c5a6eaa90fb0459a45f05ebab73348d64Timo Sirainen <option>nameserver</option> entries are present, or if
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen forwarding fails, <command>lwresd</command> resolves the
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen queries autonomously starting at the root name servers, using
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen a built-in list of root server hints.
0e35a99c5a6eaa90fb0459a45f05ebab73348d64Timo Sirainen <variablelist>
0e35a99c5a6eaa90fb0459a45f05ebab73348d64Timo Sirainen <varlistentry>
0e35a99c5a6eaa90fb0459a45f05ebab73348d64Timo Sirainen <term>-C <replaceable class="parameter">config-file</replaceable></term>
0e35a99c5a6eaa90fb0459a45f05ebab73348d64Timo Sirainen Use <replaceable class="parameter">config-file</replaceable> as the
0e35a99c5a6eaa90fb0459a45f05ebab73348d64Timo Sirainen configuration file instead of the default,
0e35a99c5a6eaa90fb0459a45f05ebab73348d64Timo Sirainen </varlistentry>
f0913bab58841032fa0ac719771f78bc3a4fd23eMartti Rannanjärvi <varlistentry>
f0913bab58841032fa0ac719771f78bc3a4fd23eMartti Rannanjärvi <term>-d <replaceable class="parameter">debug-level</replaceable></term>
725051a12a40625d79aada33f86993d7b8a18631Timo Sirainen Set the daemon's debug level to <replaceable class="parameter">debug-level</replaceable>.
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo Sirainen Debugging traces from <command>lwresd</command> become
419be6cd72f6e11705576bbba683b29c32eaa762Timo Sirainen more verbose as the debug level increases.
4da8c6cdefabd31262318c32da3c13de1d9ea953Timo Sirainen </varlistentry>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen <varlistentry>
4d4d6d4745682790c20d759ba93dbea46b812c5dTimo Sirainen Run the server in the foreground (i.e. do not daemonize).
4da8c6cdefabd31262318c32da3c13de1d9ea953Timo Sirainen </varlistentry>
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen <varlistentry>