This option takes a domain name and filename as an argument, declaring the local server authoritative for the named domain. As a primary server, named loads the zone information from the given master file.
There will always be at least one
This statement takes a domain name, an address list, and a filename as an argument. It declares the local server a secondary master server for the specified domain.
A secondary server holds authoritative data on the domain, too, but it doesn't gather it from files; instead, it tries to download it from the primary server. The IP address of at least one primary server thus must be given to named in the address list. The local server contacts each of them in turn until it successfully transfers the zone database, which is then stored in the backup file given as the third argument. If none of the primary servers responds, the zone data is retrieved from the backup file instead.
named then attempts to refresh the zone data at regular intervals. This process is explained later in connection with the SOA resource record type.
This option takes a domain name and filename as arguments. This file contains the root server hints, which is a list of records pointing to the root name servers. Only NS and A records will be recognized. The
This information is absolutely crucial to named; if the
This statement takes a whitespace-separated list of addresses as an argument. The IP addresses in this list specify a list of name servers that named may query if it fails to resolve a query from its local cache. They are tried in order until one of them responds to the query. Typically, you would use the name server of your network provider or another well-known server as a forwarder.
This statement makes the name server a
There are two options that we will not describe here:
The BIND 8 host.conf File
BIND Version 8 introduced a range of new features, and with these came a new configuration file syntax. The
The new syntax is more complex, but fortunately a tool has been provided that automates conversion from the old syntax to the new syntax. In the BIND 8 source package, a perl program called named-bootconf.pl is provided that will read your existing
You should use the script somewhat like this:
# cd /etc
# named-bootconf.pl ‹named.boot ›named.conf
The script then produces a
Example 6.9: The BIND 8 equivalent named.conf File for vlager
//
// /etc/named.boot file for vlager.vbrew.com
options {
directory '/var/named';
};
zone '.' {
type hint;
file 'named.ca';
};
zone 'vbrew.com' {
type master;
file 'named.hosts';
};
zone '0.0.127.in-addr.arpa' {
type master;
file 'named.local';
};
zone '16.172.in-addr.arpa' {
type master;
file 'named.rev';
};
If you take a close look, you will see that each of the one-line statements in
The comments, which in the
The
The
The zone files do not need to be modified in any way; their syntax remains unchanged.
The new configuration syntax allows for many new options that we haven't covered here. If you'd like information on the new options, the best source of information is the documentation supplied with the BIND