Installing and Administering Internet Services

116 Chapter3
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
records for this domain.
NS Name Server records. The NS records give the names of
the name servers and the domains for which they have
authority. The domain for the name servers in the
example is the current origin
(8.19.15.in-addr.arpa), because @ was the last
domain specified.
PTR Pointer records. PTR records are usually used to
associate an address in the in-addr.arpa domain with
the canonical name of a host. Thefirst PTR record in the
example file associatesthe name rabbit.div.inc.com
with the address 119.8.19.15.in-addr.arpa. (The
current origin is appended to the 119 in the first field,
because it does not end with a dot.)
To Add a Host to the Domain Data Files
1. Add the host to /etc/hosts and run hosts_to_named again.
or
Add the host manually, as follows:
Edit db.
domain
. Add an Address (A) resource record for each
address of the new host. Add CNAME, HINFO, WKS, and MX resource
records as necessary. Increment the serial number in the SOA
resource record.
Edit db.
net
. Add a PTR resource record for each host address.
Increment the serial number in the SOA resource record.
Add the host to the /etc/hosts file. If the host is not listed in
/etc/hosts, someone might run hosts_to_named, which
overwrites your db.
domain
and db.
net
files, and the host will be
lost.
Examples of these records are shown in “The Primary Master
Server’s db.domain Files” on page 111 and “The Primary Master
Server’s db.net Files” on page 114.
2. After modifying the domain data files, issue the following command to
restart the name server and force it to reload its databases:
/usr/sbin/sig_named restart