LinuxCommandLibrary

rndc

TLDR

Reload BIND configuration

$ rndc reload
copy
Reload specific zone
$ rndc reload [example.com]
copy
Show server status
$ rndc status
copy
Flush cache
$ rndc flush
copy
Stop server
$ rndc stop
copy

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
copy

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;
};
copy

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

Copied to clipboard