// // Add local zone definitions here. // This is the primary configuration file for the BIND DNS server named. // This is for example only //acl "dns_slaves" { // 172.16.1.2; # IP of the slave DNS nameserver // 172.16.101.2 # ditto //}; acl "lan1_hosts" { 192.168.1.0/24; # network address of your local LAN // 192.168.1.30; }; acl "lan2_hosts" { 192.168.2.0/24; # network address of your local LAN // 192.168.2.23; }; options { # this section sets the default options directory "/etc/bind" # directory where the zone files will reside // listen-on { // 192.168.0.1; # IP address of the local interface to listen // 127.0.0.1; # ditto // }; auth-nxdomain no; # conform to RFC1035 allow-query { any; }; # allow anyone to issue queries recursion no; # disallow recursive queries unless over-ridden below version "0"; # obscures version reporting - can't hurt }; view "int2" { match-clients { lan2_hosts; }; # match hosts in acl "lan_hosts" above recursion yes; # allow recursive queries notify no; # disable AA notifies // prime the server with knowledge of the root servers zone "." { type hint; file "db.root"; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 zone "localhost" { type master; file "db.local"; }; zone "127.in-addr.arpa" { type master; file "db.127"; }; zone "0.in-addr.arpa" { type master; file "db.0"; }; zone "255.in-addr.arpa" { type master; file "db.255"; }; zone "ath.cx" { type master; file "/etc/bind/db.ath.cx2"; }; }; view "int1" { match-clients { lan1_hosts; }; # match hosts in acl "lan_hosts" above recursion yes; # allow recursive queries notify no; # disable AA notifies // prime the server with knowledge of the root servers zone "." { type hint; file "db.root"; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 zone "localhost" { type master; file "db.local"; }; zone "127.in-addr.arpa" { type master; file "db.127"; }; zone "0.in-addr.arpa" { type master; file "db.0"; zone "255.in-addr.arpa" { type master; file "db.255"; }; zone "ath.cx" { type master; file "/etc/bind/db.ath.cx1"; }; };