1LWRESD(8) BIND9 LWRESD(8)
2
3
4
6 lwresd - lightweight resolver daemon
7
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
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
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. <term>-c</term> can not be used with
48 <term>-C</term>.
49
50 -C config-file
51 Use config-file as the configuration file instead of the default,
52 /etc/resolv.conf. <term>-C</term> can not be used with
53 <term>-c</term>.
54
55 -d debug-level
56 Set the daemon's debug level to debug-level. Debugging traces from
57 lwresd become more verbose as the debug level increases.
58
59 -f
60 Run the server in the foreground (i.e. do not daemonize).
61
62 -g
63 Run the server in the foreground and force all logging to stderr.
64
65 -i pid-file
66 Use pid-file as the PID file instead of the default,
67 /var/run/lwresd.pid.
68
69 -m flag
70 Turn on memory usage debugging flags. Possible flags are usage,
71 trace, record, size, and mctx. These correspond to the
72 ISC_MEM_DEBUGXXXX flags described in <isc/mem.h>.
73
74 -n #cpus
75 Create #cpus worker threads to take advantage of multiple CPUs. If
76 not specified, lwresd will try to determine the number of CPUs
77 present and create one thread per CPU. If it is unable to determine
78 the number of CPUs, a single worker thread will be created.
79
80 -P port
81 Listen for lightweight resolver queries on port port. If not
82 specified, the default is port 921.
83
84 -p port
85 Send DNS lookups to port port. If not specified, the default is
86 port 53. This provides a way of testing the lightweight resolver
87 daemon with a name server that listens for queries on a
88 non-standard port number.
89
90 -s
91 Write memory usage statistics to stdout on exit.
92 Note: This option is mainly of interest to BIND 9 developers
93 and may be removed or changed in a future release.
94
95 -t directory
96 Chroot to directory after processing the command line arguments,
97 but before reading the configuration file.
98 Warning: This option should be used in conjunction with the
99 -u option, as chrooting a process running as root doesn't
100 enhance security on most systems; the way chroot(2) is
101 defined allows a process with root privileges to escape a
102 chroot jail.
103
104 -u user
105 Setuid to user after completing privileged operations, such as
106 creating sockets that listen on privileged ports.
107
108 -v
109 Report the version number and exit.
110
112 /etc/resolv.conf
113 The default configuration file.
114
115 /var/run/lwresd.pid
116 The default process-id file.
117
119 named(8), lwres(3), resolver(5).
120
122 Internet Systems Consortium
123
125 Copyright © 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
126 Copyright © 2000, 2001 Internet Software Consortium.
127
128
129
130BIND9 June 30, 2000 LWRESD(8)