Specifications
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "." in {
type hint;
file "root.hint";
};
File 9: A Basic /etc/named.conf
This example works for both BIND8 and BIND9, because no special options
are used that are only understood by one version or the other. BIND9 ac-
cepts all BIND8 configurations and makes note of options not implemented at
start-up. Special BIND9 options are, however, not supported by BIND8.
Important Configuration Options
directory "/var/lib/named"; specifies the directory where BIND can find the
files containing the zone data.
forwarders 10.0.0.1; ; is used to specify the name servers (mostly of the
provider) to which DNS requests, which cannot be resolved directly,
are forwarded.
forward first; causes DNS requests to be forwarded before an attempt is
made to resolve them via the root name servers. Instead of forward
first, forward only can be written to have all requests forwarded and
none sent to the root name servers. This makes sense for firewall con-
figurations.
listen-on port 53 127.0.0.1; 192.168.0.1; ; tells BIND to which network inter-
face and port to listen. The port 53 specification can be left out, since
53 is the default port. If this entry is completely omitted, BIND accepts
requests on all interfaces.
query-source address * port 53; This entry is necessary if a firewall is block-
ing external DNS requests. This tells BIND to post requests externally
from port 53 and not from any of the ports greater than 1024.
160 The Configuration File /etc/named.conf










