
Chapter 17. Berkeley Internet Name Domain (BIND) 235
If the command was not successful, carefully go over the /etc/named.conf and /etc/rndc.conf
files and look for errors.
Caution
You should make sure that unprivileged users cannot read or write the /etc/rndc.conf file.
17.3.2. Command Line Options
An rndc command takes the following form:
rndc options command command-options
Figure 17-26. Structure of a rndc command
The options area is not required, and you do not have to use command-options unless the
command requires them.
When executing rndc on a properly configured localhost, the following commands are available:
• halt — Stops the named service immediately.
• querylog — Turns on logging of all queries made by clients to this nameserver.
• refresh — Refreshes the nameserver’s database.
• reload — Tells the nameserver to reload the zone files but keep all other previously cached re-
sponses. This allows you to make changes to zone files and have them take effect on your master
and slave servers without losing all stored name resolutions.
If your changes only affected a particular zone, you can tell named to only reload that one zone.
Type the name of the zone after the reload command.
• stats — Dumps the current named stats to the /var/named/named.stats file.
• stop — Stops the server gracefully, saving any dynamic update and IXFR data before exiting.
Occasionally, you may want to override the default settings in the /etc/rndc.conf file. The follow-
ing options are available:
• -c
configuration-file — Tells rndc to use a configuration file other than the default
/etc/rndc.conf.
• -p
port-number — Specifies a different port number to use for the rndc connection other
than the default 953.
• -s
server — Tells rndc to send the command to a server other than the default-server
option in /etc/rndc.conf file.
In order for this to work, you must have configured the other named service to accept commands
from your host and have the key for that nameservice.
• -y key-name — Allows you to specify a key other than the default-key option in
/etc/rndc.conf file.
Additional information about these options can be found in the rndc man page.
Commenti su questo manuale