# NOTE: "localhost" != 127.0.0.1, it's an acl with all local interface IPs options { directory "/var/named"; statistics-interval 240; # How often to write out statistics cleaning-interval 240; # How often to clean the RR cache # defaults allow-query { localhost; }; # By Default, do not allow anyone allow-transfer { localhost; }; # other than "ourselves" to query }; # Nor do a zone transfer zone "." in { type hint; file "root.cache"; }; zone "foo.com" in { type master; file "master/foo.com"; allow-query { any; }; # Allow anyone to query from the zone allow-transfer { 192.168.0.249; }; # Allow ns2.foo.com to transfer the zone }; zone "0.168.192.in-addr.arpa" in { type master; file "master/0.168.192.in-addr.arpa"; allow-query { any; }; allow-transfer { 192.168.0.249; }; }; ## The below would be an example configuration for a server that is a slave ## server for the domain/zone "bar.com" - the master server is 10.20.10.249 ## ## You'll have to uncomment it. # # zone "bar.com" in { # type slave; # file "slave/bar.com"; # masters { 10.20.10.249; }; # allow-query { any; }; # };