// $OpenBSD: named-simple.conf,v 1.6 2004/08/16 15:48:28 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 { localnets; ::1; }; options { version ""; // remove this to allow version queries listen-on { any; }; listen-on-v6 { any; }; allow-recursion { clients; }; }; key mykey { algorithm hmac-md5; secret "jättehemligt"; }; controls { inet 127.0.0.1 allow { 127.0.0.1; 192.168.1.1;} keys { mykey; }; }; logging { category lame-servers { null; }; }; // Standard zones // zone "." { type hint; file "standard/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; }; zone "local" { type master; allow-update { key "mykey"; }; allow-transfer { 192.168.1/8; }; file "master/local"; }; zone "1.168.192.in-addr.arpa" { type master; allow-update { key "mykey"; }; allow-transfer { 192.168.1/8; }; file "master/local.arpa"; };