First, change the "directory" to point to /var/cache/bind, which ensures that
e.g. simple file "something" statements for secondary servers will create files
there (the directory is created by the init script, so we're sure that it
exists). This behaviour matches e.g. what Debian does.
Second, remove the "auth-nxdomain" stanza which is the default in bind since
9.0 was released.
Third, change "master" to "primary" (the wording used in the bind reference
docs)
Signed-off-by: David Härdeman <[email protected]>
// This is the primary configuration file for the BIND DNS server named.
options {
- directory "/tmp";
-
- // If your ISP provided one or more IP addresses for stable
- // nameservers, you probably want to use them as forwarders.
- // Uncomment the following block, and insert the addresses replacing
- // the all-0's placeholder.
-
- // forwarders {
- // 0.0.0.0;
- // };
-
- auth-nxdomain no; # conform to RFC1035
+ directory "/var/cache/bind";
};
include "/etc/bind/named-rndc.conf";
// broadcast zones as per RFC 1912
zone "localhost" {
- type master;
+ type primary;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
- type master;
+ type primary;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
- type master;
+ type primary;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
- type master;
+ type primary;
file "/etc/bind/db.255";
};