HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

r
rndc.conf(4) rndc.conf(4)
(BIND 9.3)
C: /* comment */
C++: // to end of line
UNIX: # to end of line
Name Server Configuration
The name server must be configured to accept
rndc connections and to recognize the key specified in the
rndc.conf file, using the controls statement in
named.conf .
WARNINGS
Currently, there is no way to specify the port on which
rndc must run.
EXAMPLES
Example 1
Here is a sample
rndc.conf file:
options {
default-server localhost;
default-key samplekey;
};
server localhost {
key samplekey;
};
key samplekey {
algorithm hmac-md5;
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
In this example, rndc will, by default, use the server at localhost (127.0.0.1) and the key named
sam-
plekey
. Commands directed to the localhost server will use the samplekey key. The key state-
ment indicates that
samplekey uses the HMAC-MD5 algorithm and its secret clause contains the
base-64 encoding of the HMAC-MD5 secret enclosed in double quotes.
Example 2
To generate a random secretvalue with the rndc-confgen command (see rndc-confgen(1)):
$ rndc-confgen
A complete rndc.conf file, including the randomly generated key, is written to standard output.
Commented-out key and controls
statements for named.conf are also written.
Example 3
To generate the secretvalue with the
dnssec-keygen
command (see dnssec-keygen(1)):
$ dnssec-keygen -a hmac-md5 -b 128 -n user rndc
The base-64 secretvalue will appear in two files, Krndc.+157.+ keyid.key and
Krndc.+157.+ keyid.private. After you copy the secretvalue into key statements in the
rndc.conf and named.conf files, you can delete the .key and .private files.
AUTHOR
rndc.conf was developed by the Internet Systems Consortium (ISC).
SEE ALSO
dnssec-keygen(1), rndc(1), rndc-confgen(1), named(1M).
HP-UX IP Address and Client Management Administrator’s Guide, available online at
http://docs.hp.com.
BIND 9 Administrator Reference Manual, available from the Internet Systems Consortium at
http://www.isc.org/sw/bind/arm93.
376 Hewlett-Packard Company 2 HP-UX 11i Version 3: February 2007