Installing and Administering Internet Services

Contents
7
To Add a Host to the Domain Data Files . . . . . . . . . . . . . . . . . . . . . . .84
To Delete a Host from the Domain Data Files . . . . . . . . . . . . . . . . . . .85
Configuring a Secondary Master Name Server . . . . . . . . . . . . . . . . . . . .86
Creating Secondary Server Data Files via hosts_to_named . . . . . . . .86
To Create the Secondary Master Server’s Data Files Manually . . . . .87
To Set the Default Domain Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
Configuring a Caching-Only Name Server. . . . . . . . . . . . . . . . . . . . . . . .89
Configuring the Resolver to Query a Remote Name Server . . . . . . . . . .91
Starting the Name Server Daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Verifying the Name Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Updating Network-Related Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
To Update /etc/hosts.equiv and $HOME/.rhosts. . . . . . . . . . . . . . . . . .95
To Update /var/adm/inetd.sec and $HOME/.netrc . . . . . . . . . . . . . . . .95
To Update /etc/hosts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
Delegating a Subdomain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96
Configuring a Root Name Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97
Configuring BIND in SAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
Troubleshooting the BIND Name Server. . . . . . . . . . . . . . . . . . . . . . . .100
Troubleshooting Tools and Techniques . . . . . . . . . . . . . . . . . . . . . . . .100
The ping command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
The nsquery command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
The syslogd Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
Name Server Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
Dumping the Name Server Database . . . . . . . . . . . . . . . . . . . . . . .102
Problem Symptoms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102
Name Server Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
Understanding Name Server Debugging Output. . . . . . . . . . . . . . . .109
Example 1: No Retransmissions. . . . . . . . . . . . . . . . . . . . . . . . . . . .109