LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rndc

Control BIND DNS server remotely

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

CONFIGURATION

/etc/rndc.conf

Main configuration file defining the authentication key, default server address, and port for connecting to named.
/etc/rndc.key
Shared HMAC key file used to authenticate rndc commands with the BIND server. Generated with rndc-confgen.
/etc/named.conf
BIND server configuration must include a matching controls block with the same key to accept rndc connections.

COMMANDS

reload [zone]

Reload config/zone.
status
Server status.
flush [view]
Flush cache.
stop
Stop server.
reconfig
Reload config only.
zonestatus zone
Zone status.

INSTALL

sudo apt install bind9-utils
copy
sudo dnf install bind
copy
sudo pacman -S bind
copy
sudo apk add bind
copy
sudo zypper install bind
copy
brew install bind
copy
nix profile install nixpkgs#bind
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

named(8), named.conf(5)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid