lwresd.8 revision 499b34cea04a46823d003d4c0520c8b03e8513cb
Copyright (C) 2000, 2001 Internet Software Consortium.

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
$Id: lwresd.8,v 1.10 2001/01/09 21:47:12 bwelling Exp $
.Dd Jun 30, 2000 .Dt LWRESD 8 .Os BIND9 9 .Sh NAME .Nm lwresd .Nd lightweight resolver daemon .Sh SYNOPSIS .Nm lwresd .Op Fl C Ar config-file .Op Fl d Ar debuglevel .Op Fl f g s .Op Fl i Ar pid-file .Op Fl n Ar #cpus .Op Fl P Ar listen-port# .Op Fl p Ar port# .Op Fl t Ar directory .Op Fl u Ar user-id .Op Fl v .Sh DESCRIPTION .Nm lwresd is the daemon providing name lookup services to clients that use the BIND 9 lightweight resolver library. It is essentially a stripped-down, caching-only name server that answers queries using the BIND 9 lightweight resolver protocol rather than the DNS protocol.

p .Nm lwresd listens for resolver queries on a UDP port on the IPv4 loopback interface, 127.0.0.1. This means that .Nm lwresd can only be used by processes running on the local machine. By default UDP port number 921 is used for lightweight resolver requests and responses.

p Incoming lightweight resolver requests are decoded by .Nm lwresd which then resolves them using the DNS protocol. When the DNS lookup completes, .Nm lwresd encodes the answers from the name servers in the lightweight resolver format and returns them to the client that made the original request.

p If

a /etc/resolv.conf contains any .Sy nameserver entries, .Nm lwresd sends recursive DNS queries to those servers. This is similar to the use of forwarders in a chaching name server. If no .Sy nameserver entries are present, or if forwarding fails, .Nm lwresd resolves the queries autonomously starting at the root name servers, using a compiled-in list of root servers hints.

p The options to .Nm lwresd are as follows: l -tag -width Ds t Fl C use .Ar config-file as the configuration file instead of the default,

a /etc/resolv.conf . t Fl d set the daemon's debug level to .Ar debuglevel . Debugging traces from .Nm lwresd become more verbose as the debug level increases. t Fl f run .Nm lwresd in the foreground. t Fl g run .Nm lwresd in the foreground and force all logging to .Dv stderr . t Fl i write the daemon's process id to .Ar pid-file instead of the default pathname. t Fl n create .Ar #cpus worker threads to take advantage of multiple CPUs. If no option is given, .Nm lwresd will try to determine the number of CPUs present and create one thread per CPU. If .Nm lwresd is unable to determine the number of CPUs, a single worker thread is created. t Fl P listen for lightweight resolver queries on the loopback interface using UDP port .Ar port# instead of the default port number, 921. t Fl p send DNS lookups to port number .Ar listen-port# when querying name servers. This provides a way of testing the lightweight resolver daemon with a name server that listens for queries on a non-standard port number. t Fl s write memory usage statistics to .Dv stdout on exit. This option is only of interest to BIND 9 developers and may be removed or changed in a future release. t Fl t tells .Nm lwresd to chroot() to .Ar directory immediately after reading its configuration file. t Fl u run .Nm lwresd as .Ar user-id , which is a user name or numeric id that must be present in the password file. The lightweight resolver daemon will change its user-id after it has carried out any privileged operations, such as writing the process-id file or binding a socket to a privileged port (typically any port less than 1024). t Fl v report the version number and exit. .El .Sh FILES l -tag -width /var/run/lwresd.pid -compact t Pa /etc/resolv.conf default configuration file t Pa /var/run/lwresd.pid default process-id file .El .Sh SEE ALSO .Xr named 8 , .Xr lwres 3 . .Sh NOTES .Nm lwresd is a daemon for lightweight resolvers, not a lightweight daemon for resolvers.