DNRD Manual Pagednrd - proxy name server
- [-a localaddress | --address=localaddress] [-b | --load-balance] [-c (off|[low:]high) | --cache=(off|[low:]high)] [-d LEVEL | --debug=LEVEL] [-h | --help] [-i | --ignore] [-k | --kill] [-l | --log] [-m (off|hosts) | --master=(off|hosts)] [-M N | --max-sock=N] [-r N | --retry=N] [-s ipaddr(:domain) | --server=ipaddr(:domain)] [-t N | --timeout=N] [-u userid | --uid=userid] [-v | --version]
DESCRIPTIONdnrd is a proxying nameserver. It forwards DNS queries to the appropriate nameserver, but can also act as the primary nameserver for a subnet behind a firewall. Proxying is configured on the command line using the -s option. By default, dnrd will act as the primary nameserver for hosts found in /etc/hosts.
Bind only to the interface with the specified address. By default
dnrd binds to everything.
Turn on load balancing. All forward servers that are specified after
this option (with
-s) will load balance in a round robin scheme. By default,
dnrd will use the next server in the list if the first times out. As soon
as the first is reactivated, it will be used again. With
option, dnrd will use next active server as soon a request is
served. If a server times out it will be deactivated and will not be
used until it comes back. As soon it is reactivated it will join the
Note that if there are no -s after the -b, this will do nothing at all.
- -c (off|[low:]high)
This option can be used to either turn
off caching of DNS responses, or to change the
high and low watermarks. With the
water mark option, cached entries are purged when the number of
responses reaches the
mark, and they will be purged until the number of cached responses
mark, purging the oldest first. By default, caching is on, with
water-marks of 800 and 1000 respectively.
- -d LEVEL
This turns on debugging level
process will not fork into the background and print out debugging
information in the current console. Supported debug levels are 1-4
The higher level, the more debug info is printed.
The -l option can be used to force dnrd to run in the background and log debug info to syslog.
Sending signal SIGUSR1 will toggle the debug level between level 0 (no debugging) and level 3.
Prints usage information
Ignore cache for deactivated servers. If a forward DNS server times
out and gets deactivated, all cache entries for this server are
ignored. This helps avoid network timeout delays when
serves a offline/dialup network.
Kills the currently running
Send all messages to syslog.
uses the deamon facility. If used with the
flag, this option will cause
to fork and run in the background, logging all debugging messages to
- -m (off|hosts)
can act as the primary name server for a number of hosts. By default,
it will read in
to determine how this is done. If that file
doesn't exist, it will act as the primary server for the hosts found in
This option allows you to override the default behavior. Setting it to
turns off all primary server functionality. Setting it to
to act as the primary server for hosts in
regardless of whether it could find
Sending the signal HUP to the dnrd process will cause the /usr/local/etc/dnrd/master file to be re-read. Since /etc/hosts is outside the chrooted envronment, dnrd will not be able to reread this file. Therefore it is not recommended to use /etc/hosts at all. Future versions of dnrd will not support any use of /etc/hosts.
- -M N
Set the maximum allowed open sockets. Default is 200.
- -r N
Set the retry interval time. When a forward DNS server times out it is
deactivated. (use the
option to set the timeout value)
will try to send a request for localhost every
seconds. As soon there are a respose from a deactivated server, it is
reactivated. The default value is
seconds. Setting this to zero will make
to never deactivate a server.
- -s ipaddr(:domain)
Add a forward DNS server. If multiple
options are given,
treats the first as a primary DNS server and the rest as backup
servers. If the primary DNS server times out, it is deactivated and
the next specified server (that is active) is used until the previous
The domain option allows dnrd to determine which DNS server should get the query based on the domain name in the query. This is useful when you have an internet connection and a vpn connection to work, for instance. Several servers with the same domain might be specified and then will they work as backup servers.
If -b option is specified, then will all servers specified after the -b option, be grouped by domain, and load balanced.
- -t N
Set the timeout value for forward DNS servers. If a server don't
respond to a query within
seconds it is deactivated. The default value is
Setting this to zero will make dnrd to never deactivate a server because of timeouts. However, a server might be deactivated if sendto fails.
- -u userid
switches to uid
after starting up. This is a security feature. The default uid can be
overridden using this option.
can either be a name or a number.
Prints out the version number.
Sending -SIGHUP will not reread the /etc/hosts file since dnrd is chrooted to /usr/local/etc/dnrd. Use /usr/local/etc/dnrd/master instead and avoid using /etc/hosts at all.
This file is used to configure dnrd as a primary nameserver.
By default, dnrd will act as a primary nameserver for hosts found in this file. Note that this file will not be used at all in future versions.
The currently-running dnrd process' pid is placed into this file. It is needed to allow new dnrd processes to find and kill the currently running process.
The original version of dnrd was written by Brad Garcia firstname.lastname@example.org. Other contributors are listed in the HISTORY file included with the source code.