Basic BIND > 9 administration

The Version:
# named -v
BIND 9.17.0-P8
Type rndc, the name server control utility to view the options or wannabe options
# rndc


Most Commonly Used:

A status
#rndc status
version: 9.17.0-P8 (a version)
CPUs found: 4
worker threads: 4
number of zones: 110
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running



Flush a view eg. internal --useful in caching nameservers
# rndc flush internal


Reload a zone
#rndc reload ipduh.com 
zone refresh queued


Reload all
#rndc reload
server reload successful


The above commands are usually better alternatives to
# /etc/init.d/named restart


A listing of all the rndc options -- don't expect all of them to work with custom TLDs not delegated from the root nameservers eg .awmn. --
#rndc
Usage: rndc [-c config] [-s server] [-p port]
 [-k key-file ] [-y key] [-V] command

command is one of the following:

  reload Reload configuration file and zones.
  reload zone [class [view]]
  Reload a single zone.
  refresh zone [class [view]]
  Schedule immediate maintenance for a zone.
  retransfer zone [class [view]]
  Retransfer a single zone without checking serial number.
  freeze Suspend updates to all dynamic zones.
  freeze zone [class [view]]
  Suspend updates to a dynamic zone.
  thaw  Enable updates to all dynamic zones and reload them.
  thaw zone [class [view]]
  Enable updates to a frozen dynamic zone and reload it.
  notify zone [class [view]]
  Resend NOTIFY messages for the zone.
  reconfig Reload configuration file and new zones only.
  sign zone [class [view]]
  Update zone keys, and sign as needed.
  stats  Write server statistics to the statistics file.
  querylog Toggle query logging.
  dumpdb [-all|-cache|-zones] [view ...]
  Dump cache(s) to the dump file (named_dump.db).
  stop  Save pending updates to master files and stop the server.
  stop -p Save pending updates to master files and stop the server
  reporting process id.
  halt  Stop the server without saving pending updates.
  halt -p Stop the server without saving pending updates reporting
  process id.
  trace  Increment debugging level by one.
  trace level Change the debugging level.
  notrace Set debugging level to 0.
  flush  Flushes all of the server's caches.
  flush [view] Flushes the server's cache for a view.
  flushname name [view]
  Flush the given name from the server's cache(s)
  status Display status of the server.
  recursing Dump the queries that are currently recursing (named.recursing)
  validation newstate [view]
  Enable / disable DNSSEC validation.
  *restart Restart the server.

* == not yet implemented
Version: a version


Check Configuration Files
#named-checkconf /etc/bind/named.conf.options


Check a zone file
#named-checkzon trampoline.com /var/cache/bind/db.trampoline.com




Basic Bind > 9 Administration