Name
rndc
Synopsis
rndc [options
] [command
]
TCP/IP command. Send commands to a BIND DNS server via a TCP connection (see the named command.) This command reads authentication and connection information from the file /etc/rndc.conf, and its authentication key from /etc/rndc.key. If entered without a command, display a help message listing the available commands.
Options
- -c file
Read configuration information from file instead of /etc/rndc.conf.
- -k file
Perform command on the routing cache instead of the forwarding information base (FIB) routing table.
- -p port
Connect to the specified port instead of the default control channel port, 953.
- -s server
Send command to the specified server. There must be an entry for server in the configuration file.
- -V
Use verbose log messages.
- -y keyname
Specify the key to use by keyname. There must be a key entry for keyname in the /etc/rndc.conf file.
Commands
You can send the following commands to a BIND nameserver:
- dumpdb
Dump current cache to the dump file (specified in /etc/named.conf), or to named_dump.db when not specified.
- flush [view]
Flush all server caches, or only the cache for the specified view.
- halt
Stop server immediately.
- querylog
Toggle query logging.
- reconfig
Reload the configuration file and any new zones.
- reload [zone [class [view]]]
Reload configuration file and zones. When specified, limit the reload to the given zone, class, or view.
- refresh zone
Refresh database information for zone.
- stats
Write statistics to the statistics file (specified in /etc/named.conf ...
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.