Installing and Administering Internet Services
Contents
7
Configuring a Primary Master Name Server. . . . . . . . . . . . . . . . . . . . . .86
To Create the Data Files for a Primary Master Server . . . . . . . . . . . .86
To Set the Default Domain Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
The BIND Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
options Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94
Migrating /etc/named.boot to /etc/named.conf . . . . . . . . . . . .106
The Primary Master Server’s Boot File. . . . . . . . . . . . . . . . . . . . . . . .106
The Primary Master Server’s Cache File . . . . . . . . . . . . . . . . . . . . . .107
The db.127.0.0 File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
The Primary Master Server’s db.domain Files. . . . . . . . . . . . . . . . . .111
The Primary Master Server’s db.net Files . . . . . . . . . . . . . . . . . . . . .114
To Add a Host to the Domain Data Files . . . . . . . . . . . . . . . . . . . . . .116
To Delete a Host from the Domain Data Files . . . . . . . . . . . . . . . . . .117
Configuring a Secondary Master Name Server . . . . . . . . . . . . . . . . . . .118
Creating Secondary Server Data Files via hosts_to_named . . . . . . .118
To Create the Secondary Master Server’s Data Files Manually . . . .119
To Set the Default Domain Name . . . . . . . . . . . . . . . . . . . . . . . . . . . .120
Configuring a Caching-Only Name Server. . . . . . . . . . . . . . . . . . . . . . .121
Configuring the Resolver to Query a Remote Name Server . . . . . . . . .123
Configuring the Resolver to Set Timeout Values . . . . . . . . . . . . . . . . .125
Configuring Timeout Values using Environment Variables . . . . . . .125
Configuring Timeout Values using the Configuration File . . . . . . . .126
Configuring Timeout Values using APIs. . . . . . . . . . . . . . . . . . . . . . .126
Sample Program With Timeout Values . . . . . . . . . . . . . . . . . . . . . . .127
Starting the Name Server Daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . .128
Verifying the Name Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128
Updating Network-Related Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
To Update /etc/hosts.equiv and $HOME/.rhosts. . . . . . . . . . . . . . . . .130
To Update /var/adm/inetd.sec and $HOME/.netrc . . . . . . . . . . . . . . .130