// $OpenBSD: named-simple.conf,v 1.8 2008/01/03 21:20:25 jakob Exp $ // // Example file for a simple named configuration, processing both // recursive and authoritative queries using one cache. // Update this list to include only the networks for which you want // to execute recursive queries. The default setting allows all hosts // on any IPv4 networks for which the system has an interface, and // the IPv6 localhost address. // acl clients { 192.168.1.0/24; 2001:x:x:x::/64; //not a real ipv6, remove or replace ::1; 127.0.0.1; }; options { version ""; // remove this to allow version queries listen-on { 127.0.0.1; }; listen-on { 192.168.1.2; }; listen-on-v6 { 2001:x:x:x::x; }; //likewise empty-zones-enable yes; allow-recursion { clients; }; }; logging { category lame-servers { null; }; }; // Standard zones // zone "." { type hint; file "etc/root.hint"; }; zone "localhost" { type master; file "standard/localhost"; allow-transfer { localhost; }; }; zone "127.in-addr.arpa" { type master; file "standard/loopback"; allow-transfer { localhost; }; }; zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" { type master; file "standard/loopback6.arpa"; allow-transfer { localhost; }; }; zone "com" { type delegation-only; }; zone "net" { type delegation-only; }; //Master zones zone "local" { type master; file "master/local"; }; zone "1.168.192.in-addr.arpa" { type master; file "master/local.rev"; }; // Slave zones // //zone "otherzone.net" { // type slave; // file "slave/otherzone.net"; // masters { 192.0.2.1; [...;] }; //};