dns test configuration file for named

saves dumps, logs, pids, etc. to alternate locations so originals don’t get polluted or destroyed.

# /etc/dns.test.config
# for testing named configurations before trying to load them.
# dave capella - https:_grox.net/ - 10/16/2011
############################################################

options {
  # traditionally /var/named (sigh)
  directory "/var/lib/named";
  # don't overwrite the real ones.
  dump-file "/var/log/test.dump";
  statistics-file "/var/log/test.stats";
  memstatistics-file "/var/log/test.memstats";
  recursing-file "/var/log/test.recurse";
  pid-file "/var/run/named/test.pid";
  listen-on port 35353 { 127.0.0.1; };
};

logging {
  # log queries to a file.
  # query log limited to 100mb (really? should verify that)
  channel query_logging { file "/var/log/test.querylog"; };
  category queries { query_logging; };
  channel errors {
    file "/var/log/test.log";
    severity warning;
  };
  category default { errors;  };
  category lame-servers { null; };
};

controls {};

zone "." in { type hint; file "root.hint"; };
zone "localhost" in { type master; file "localhost.zone"; };
zone "0.0.127.in-addr.arpa" in { type master; file "127.0.0.zone"; };

############################################################
# include other configurations

#include "etc/other.test.stuff.conf";

############################################################
# EOF: dns.test.config