Installing and Administering Internet Services

6
Contents
Restricting ftp Access with /etc/ftpusers. . . . . . . . . . . . . . . . . . . . . . . . . 52
Specifying rlogin Pseudo-Terminals . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Specifying telnet Pseudo-Terminals . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Configuring Files to Bypass Security . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
To Configure the /etc/hosts.equiv File . . . . . . . . . . . . . . . . . . . . . . . . . 55
To Configure the $HOME/.rhosts File . . . . . . . . . . . . . . . . . . . . . . . . . 56
To Disable Use of $HOME/.rhosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
To Configure the $HOME/.netrc File. . . . . . . . . . . . . . . . . . . . . . . . . . 57
3. Configuring and Administering the BIND Name Service
Overview of the BIND Name Service . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Benefits of Using BIND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
The DNS Name Space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
How BIND Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Round-Robin Address Rotation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
How BIND Resolves Host Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Creating and Registering a New Domain. . . . . . . . . . . . . . . . . . . . . . . . 68
Configuring the Name Service Switch . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Choosing Name Servers for Your Domain . . . . . . . . . . . . . . . . . . . . . . . 71
To Choose the Type of Name Server to Run . . . . . . . . . . . . . . . . . . . . 71
To Choose Which Servers Will Be Master Servers . . . . . . . . . . . . . . . 72
Configuring a Primary Master Name Server . . . . . . . . . . . . . . . . . . . . . 73
To Create the Data Files for a Primary Master Server . . . . . . . . . . . 73
To Set the Default Domain Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
The Primary Master Server’s Boot File. . . . . . . . . . . . . . . . . . . . . . . . 75
The Primary Master Server’s Cache File. . . . . . . . . . . . . . . . . . . . . . . 76
The db.127.0.0 File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
The Primary Master Server’s db.domain Files . . . . . . . . . . . . . . . . . . 79
The Primary Master Server’s db.net Files. . . . . . . . . . . . . . . . . . . . . . 82