rndc
TLDR
Reload BIND configuration
$ rndc reload
Reload specific zone$ rndc reload [example.com]
Show server status$ rndc status
Flush cache$ rndc flush
Stop server$ rndc stop
SYNOPSIS
rndc [options] command [args]
DESCRIPTION
rndc (Remote Name Daemon Control) administers the BIND DNS server. It sends commands to named to reload zones, flush cache, and perform other management tasks.
PARAMETERS
-s server
Server address.-p port
Port number.-k keyfile
Key file.-c config
Config file.
EXAMPLES
$ # Check status
rndc status
# Reload all
rndc reload
# Reload specific zone
rndc reload example.com
# Flush DNS cache
rndc flush
# Flush specific name
rndc flushname example.com
# Reload configuration only
rndc reconfig
# Check zone status
rndc zonestatus example.com
rndc status
# Reload all
rndc reload
# Reload specific zone
rndc reload example.com
# Flush DNS cache
rndc flush
# Flush specific name
rndc flushname example.com
# Reload configuration only
rndc reconfig
# Check zone status
rndc zonestatus example.com
COMMANDS
reload [zone]
Reload config/zone.status
Server status.flush [view]
Flush cache.stop
Stop server.reconfig
Reload config only.zonestatus zone
Zone status.
CONFIGURATION
$ # /etc/rndc.conf
key "rndc-key" {
algorithm hmac-sha256;
secret "base64secret==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
key "rndc-key" {
algorithm hmac-sha256;
secret "base64secret==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
CAVEATS
Requires shared key with named. Default port 953. Generate key with rndc-confgen.
HISTORY
rndc is part of BIND (Berkeley Internet Name Domain) by ISC (Internet Systems Consortium).
SEE ALSO
named(8), rndc-confgen(8), named.conf(5)


