Installing and Administering Internet Services

Chapter 3 109
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
left blank, the class defaults to the last class specified.
So, all the entries in this example db.cache file are of
class IN.
type Type NS records list name servers. The first field in an
NS record is the domain for which the name server has
authority. The last field in an NS record is the fully
qualified name of the name server.
Type A records list addresses. The first field in an A
record is the name of the name server. The last field in
an A record is the internet address of the name server.
data The data field for an NS record gives the fully qualified
name of a name server. The data field for an A record
gives an internet address.
The db.127.0.0 File
Each name server must have an /etc/named.data/db.127.0.0 file.
Hosts running Berkeley networking use 127.0.0.1 as the address of the
loopback interface. Since the network number 127.0.0 is not assigned to
any one site but is used by all hosts running Berkeley networking, each
name server must be authoritative for network 127.0.0. The file
db.127.0.0 contains the resource record that maps 127.0.0.1 to the
name of the loopback address, usually localhost. The hosts_to_named
program creates this file.
;name class type data
@ IN SOA rabbit.div.inc.com. root.moon.div.inc.com.
(
1 ; Serial
10800 ; Refresh every 3 hours
3600 ; Retry every hour
604800 ; Expires after a week
86400 ) ; Minimum ttl of 1 day
@ IN NS rabbit.div.inc.com.
1 IN PTR localhost.