Книга: Fedora™ Unleashed, 2008 edition
rndc.conf
rndc.conf
uses a TCP connection (on port 953) to communicate with
rndcnamed
. The configuration file, /etc/rndc.conf
by default, must specify a server to talk to as well as include the corresponding key (which must be recognized by named
) to use while talking to it:
----------
# Use the key named "rndc" when talking to the nameserver "localhost."
server localhost {
key "rndc";
};
# Defaults. options {
default-server localhost;
default-key "rndc";
};
# Include the key to use
include "/etc/rndc.key;
----------
The file needs to have three sections:
? Server section — Defines a nameserver (localhost) and specifies a key (rndc
) to be used while communicating with it
? Options section — Sets up reasonable defaults because the file might list multiple servers and keys
? Key section — Includes the file already created, /etc/rndc.key
Should you need it, the rndc(8)
and rndc.conf(5)
manual pages contain more information.