BIND

From Indie IT Wiki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Berkley Internet Naming Daemon or DNS Server.

HOWTO: View DNS Cache

rndc dumpdb
wc -l /var/bind/named_dump.db
less /var/bind/named_dump.db

WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)

The fix is simple:

  • In /etc/bind remove rndc.conf.
  • Add the following to /etc/bind/named.conf:
 include "/etc/bind/rndc.key";
 controls {
 inet 127.0.0.1 port 953
 allow { 127.0.0.1; } keys { "rndc-key"; };
 };
  • Restart bind.