# # sample named.conf for a private DNS on the 192.168.*.* network # # This assumes that zone files are in "/var/named", and that there # is a subdirectory "/var/named/cache". You should run "named" # as a non-root user such as "nobody". Make the directory # "/var/named/cache" owned by user "nobody" (or whatever user # runs named. This sample is based on bind-8.2.x # acl lan { 192.168/16 ; 127.0.0.1 ; } ; options { directory "/var/named"; pid-file "cache/named.pid" ; forward only ; forwarders { 1.2.3.4 ; ## list your ISP dns server 5.6.7.8 ; ## on these lines. } ; allow-query { lan ; } ; allow-recursion { lan ; } ; allow-transfer { lan ; } ; } ; ## Change this entry to whatever you need for a forward ## DNS zone for your private lan. zone "private.lan" in { type master ; file "private.lan.zone" ; } ; ## This is a standard entry for the 127.0.0.1 mapping. zone "127.in-addr.arpa" in { type master ; file "localhost.rev.zone" ; } ; ## This is the entry for IP address lookups for 192.168.*.* zone "168.192.in-addr.arpa" in { type master ; file "lan.rev.zone" ; } ; ## Needed to define the root nameserver cache. zone "." in { type hint ; file "root.cache" ; } ;