named.conf revision 71f6034b7ea5c35d35784199bf6aa83acd0ae67f
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt * This is a worthless, nonrunnable example of a named.conf file that has
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt * every conceivable syntax element in use. We use it to test the parser.
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt * It could also be used as a conceptual template for users of new features.
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt# So are shell-style comments
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt 10.0.0.3; 1:2:3:4:5:6:7:8;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt transfer-source 10.0.0.5;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt transfer-source-v6 4:3:2:1:5:6:7:8;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt directory "."; // use current directory
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt named-xfer "/usr/libexec/named-xfer"; // _PATH_XFER
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt dump-file "named_dump.db"; // _PATH_DUMPFILE
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt pid-file "/var/run/named.pid"; // _PATH_PIDFILE
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt statistics-file "named.stats"; // _PATH_STATS
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt memstatistics-file "named.memstats"; // _PATH_MEMSTATS
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt tcp-clients 143;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt recursive-clients 777;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt rfc2308-type1 no;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt tkey-domain "foo.com";
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt tkey-dhkey "xyz" 666 ;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt check-names master fail;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt check-names slave warn;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt check-names response ignore;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt host-statistics no;
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt deallocate-on-exit no; // Painstakingly deallocate all
aefb3e308ba01ad47a3d3aaadf77a5edd4261cb9Evan Hunt // objects when exiting instead of
* transfers (i.e. from us to them) are formatted. Two values are
* forwarding behavior, i.e. ask the forwarders first, and if that
// (i.e. all interfaces). The
zone "master.demo.zone" {
file "master.demo.zone";
// zone
transfer-source 10.0.0.53; // fixes multihoming problems
zone "view-zone.com" {
zone "stub.demo.zone" {
file "stub.demo.zone";
file "cache.db";
// pubkey 257 255 1 "AQP2fHpZ4VMpKo/jc9Fod821uyfY5p8j5h/Am0V/KpBTMZjdXmp9QJe6yFRoIIzkaNCgTIftASdpXGgCwFB2j2KXP/rick6gvEer5VcDEkLR5Q==";
"." 257 255 1 "AQP2fHpZ4VMpKo/jc9Fod821uyfY5p8j5h/Am0V/KpBTMZjdXmp9QJe6yFRoIIzkaNCgTIftASdpXGgCwFB2j2KXP/rick6gvEer5VcDEkLR5Q==";
zone "non-default-acl.demo.zone" {
transfers 0; // not implemented
* file "named.run"; // note: stderr is used instead
* // of "named.run" if the server
* // debugging.
default_syslog; // as you want