[rescue] bind 9.2.0 rocks

Bill Bradford rescue at sunhelp.org
Wed Dec 5 21:08:03 CST 2001


Okay, after the discussion we had a while back about configuring
rndc with bind v9, 9.2.0 has a handy little utility:

root at ohno:/usr/local/sbin> ./rndc-confgen
# Start of rndc.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "50bMUXxwg5XAkoarnfPpxg==";
};

options {
        default-key "rndc-key";
        default-server 127.0.0.1;
        default-port 953;
};
# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
#       algorithm hmac-md5;
#       secret "50bMUXxwg5XAkoarnfPpxg==";
# };
# 
# controls {
#       inet 127.0.0.1 port 953
#               allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf

It generates rndc.conf (and the sections for named.conf) for you.
Drop these in, -HUP or restart named, and rndc works great.

They've also finally implemented a lot of the missing stuff
in rndc:

root at ohno:/usr/local/sbin> rndc
Usage: rndc [-c config] [-s server] [-p port] [-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.
  reconfig      Reload configuration file and new zones only.
  stats         Write server statistics to the statistics file.
  querylog      Toggle query logging.
  dumpdb        Dump cache(s) to the dump file (named_dump.db).
  stop          Save pending updates to master files and stop the server.
  halt          Stop the server without saving pending updates.
  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.
  status        Display status of the server.
  *restart      Restart the server.

* == not yet implemented
Version: 9.2.0

Looks like restart is the only thing left to go.

Bill

-- 
Bill Bradford
mrbill at mrbill.net
Austin, TX



More information about the rescue mailing list