rndc
Utilityrndc
utility is a command line tool that allows you to administer the named
service, both locally and from a remote machine. Its usage is as follows:
rndc
[option
...]command
[command-option
]
named
must be configured to listen on the selected port (that is, 953
by default), and an identical key must be used by both the service and the rndc
utility.
rndc
configuration is located in /etc/rndc.conf
. If the file does not exist, the utility will use the key located in /etc/rndc.key
, which was generated automatically during the installation process using the rndc-confgen -a
command.
named
service is configured using the controls
statement in the /etc/named.conf
configuration file as described in Section 10.2.2, “Other Statement Types”. Unless this statement is present, only the connections from the loopback address (that is, 127.0.0.1
) will be allowed, and the key located in /etc/rndc.key
will be used.
/etc/rndc.key
file:
~]# chmod o-rwx /etc/rndc.key