Installing and Administering Internet Services

76 Chapter 3
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
Every name server must have data for the 0.0.127.IN-ADDR.ARPA
domain. 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.
; Lines beginning with a semicolon (;) are comments.
directory Indicates the directory where data files are located.
primary Designates a primary server for the domain in the
second field. The third field is the name of the file
containing the data for that domain.
cache Indicates the location of the cache file, which contains
the addresses of network root name servers.
The Primary Master Server’s Cache File
The cache file, /etc/named.data/db.cache, lists the servers for the
root domain. Every name server must have a cache file. When a name
server cannot resolve a host name query from its local database or its
local cache, it queries a root server.
The hosts_to_named program creates the db.cache file, but it leaves
it empty. To add data to this file, copy it from the file
/usr/examples/bind/db.cache.arpa. You can also use anonymous
ftp to get the list of root name servers from nic.ddn.mil. Instructions
are included in the file /usr/examples/bind/db.cache.arpa.
Following is an example db.cache file for a primary master server:
;
; This file holds the information on root name servers needed
; to initialize cache of Internet domain name servers
;
; last update: May 11, 1994
; related version of root zone: 940516
;
; name ttl class type data
;
. 99999999 IN NS NS.INTERNIC.NET.
NS.INTERNIC.NET. 99999999 A 198.41.0.4
. 99999999 NS NS1.ISI.EDU.
NS1.ISI.EDU. 99999999 A 128.9.0.107
. 99999999 NS C.NYSER.NET.
C.NYSER.NET. 99999999 A 192.33.4.12
. 99999999 NS TERP.UMD.EDU.
TERP.UMD.EDU. 99999999 A 128.8.10.90
. 99999999 NS NS.NASA.GOV.
NS.NASA.GOV. 99999999 A 128.102.16.10