1LWRESD(8)                            BIND9                           LWRESD(8)
2
3
4

NAME

6       lwresd - lightweight resolver daemon
7

SYNOPSIS

9       lwresd [-c config-file] [-C config-file] [-d debug-level] [-f] [-g]
10              [-i pid-file] [-m flag] [-n #cpus] [-P port] [-p port] [-s]
11              [-t directory] [-u user] [-v] [-4] [-6]
12

DESCRIPTION

14       lwresd is the daemon providing name lookup services to clients that use
15       the BIND 9 lightweight resolver library. It is essentially a
16       stripped-down, caching-only name server that answers queries using the
17       BIND 9 lightweight resolver protocol rather than the DNS protocol.
18
19       lwresd listens for resolver queries on a UDP port on the IPv4 loopback
20       interface, 127.0.0.1. This means that lwresd can only be used by
21       processes running on the local machine. By default, UDP port number 921
22       is used for lightweight resolver requests and responses.
23
24       Incoming lightweight resolver requests are decoded by the server which
25       then resolves them using the DNS protocol. When the DNS lookup
26       completes, lwresd encodes the answers in the lightweight resolver
27       format and returns them to the client that made the request.
28
29       If /etc/resolv.conf contains any nameserver entries, lwresd sends
30       recursive DNS queries to those servers. This is similar to the use of
31       forwarders in a caching name server. If no nameserver entries are
32       present, or if forwarding fails, lwresd resolves the queries
33       autonomously starting at the root name servers, using a built-in list
34       of root server hints.
35

OPTIONS

37       -4
38           Use IPv4 only even if the host machine is capable of IPv6.  -4 and
39           -6 are mutually exclusive.
40
41       -6
42           Use IPv6 only even if the host machine is capable of IPv4.  -4 and
43           -6 are mutually exclusive.
44
45       -c config-file
46           Use config-file as the configuration file instead of the default,
47           /etc/lwresd.conf.  -c can not be used with -C.
48
49       -C config-file
50           Use config-file as the configuration file instead of the default,
51           /etc/resolv.conf.  -C can not be used with -c.
52
53       -d debug-level
54           Set the daemon's debug level to debug-level. Debugging traces from
55           lwresd become more verbose as the debug level increases.
56
57       -f
58           Run the server in the foreground (i.e. do not daemonize).
59
60       -g
61           Run the server in the foreground and force all logging to stderr.
62
63       -i pid-file
64           Use pid-file as the PID file instead of the default,
65           /var/run/lwresd/lwresd.pid.
66
67       -m flag
68           Turn on memory usage debugging flags. Possible flags are usage,
69           trace, record, size, and mctx. These correspond to the
70           ISC_MEM_DEBUGXXXX flags described in <isc/mem.h>.
71
72       -n #cpus
73           Create #cpus worker threads to take advantage of multiple CPUs. If
74           not specified, lwresd will try to determine the number of CPUs
75           present and create one thread per CPU. If it is unable to determine
76           the number of CPUs, a single worker thread will be created.
77
78       -P port
79           Listen for lightweight resolver queries on port port. If not
80           specified, the default is port 921.
81
82       -p port
83           Send DNS lookups to port port. If not specified, the default is
84           port 53. This provides a way of testing the lightweight resolver
85           daemon with a name server that listens for queries on a
86           non-standard port number.
87
88       -s
89           Write memory usage statistics to stdout on exit.
90                  Note: This option is mainly of interest to BIND 9 developers
91                  and may be removed or changed in a future release.
92
93       -t directory
94           Chroot to directory after processing the command line arguments,
95           but before reading the configuration file.
96                  Warning: This option should be used in conjunction with the
97                  -u option, as chrooting a process running as root doesn't
98                  enhance security on most systems; the way chroot(2) is
99                  defined allows a process with root privileges to escape a
100                  chroot jail.
101
102       -u user
103           Setuid to user after completing privileged operations, such as
104           creating sockets that listen on privileged ports.
105
106       -v
107           Report the version number and exit.
108

FILES

110       /etc/resolv.conf
111           The default configuration file.
112
113       /var/run/lwresd.pid
114           The default process-id file.
115

SEE ALSO

117       named(8), lwres(3), resolver(5).
118

AUTHOR

120       Internet Systems Consortium
121
123       Copyright © 2004, 2005, 2007-2009 Internet Systems Consortium, Inc.
124       ("ISC")
125       Copyright © 2000, 2001 Internet Software Consortium.
126
127
128
129BIND9                            June 30, 2000                       LWRESD(8)
Impressum