NIS+ and DNS Setup and Configuration Guide
只搜寻这本书
以 PDF 格式下载本书

............................Contents


Preface
xix

1. Getting Started With NIS+
1
...NIS+ Overview 1
...Setting Up NIS+ 2
...Before You Start NIS+ 3
...Planning Your NIS+ Layout 3
......Determining Server Requirements 4
......Disk Space and Memory Recommendations 4
...Preparing the Existing Namespace 5
...Configuration Worksheets 7

2. NIS+ Setup Scripts--Introduction
13
...About the NIS+ Scripts 13
...What the NIS+ Scripts Will Do 14
...What the NIS+ Scripts Won't Do 14

3. Setting Up NIS+ With Scripts
17
...NIS + Setup Overview 19
...Creating a Sample NIS+ Namespace 20
......Summary of NIS+ Scripts Command Lines 22
...Setting Up NIS+ Root Servers 24
......Prerequisites to Running nisserver 25
..........Information You Need 25
......· How to Create a Root Master Server 25
......· How to Change Incorrect Information 28
...Populating NIS+ Tables 30
......Prerequisites to Running nispopulate 30
..........Information You Need 32
......· How to Populate the Root Master Server Tables 32
...Setting Up Root Domain NIS+ Client Machines 39
......Prerequisites to Running nisclient 39
..........Information You Need 40
......· How to Initialize a New Client Machine 40
......Creating Additional Client Machines 42
...Initializing NIS+ Client Users 42
......Prerequisites to Running nisclient 42
..........Information You Need 43
......· How to Initialize an NIS+ User 43
...Setting Up NIS+ Servers 44
......Prerequisites to Running rpc.nisd 44
..........Information You Need 45
......Configuring a Client as an NIS+ Server 45
..........· How to Configure a Server Without NIS
............Compatibility 45
..........· How to Configure a Server With NIS Compatibility 45
..........· How to Configure a Server With DNS and NIS
............Compatibility 45
......Creating Additional Servers 46
...Designating Root Replicas 46
......Prerequisites to Running nisserver 46
..........Information You Need 47
......· How to Create a Root Replica 47
......Creating Additional Replicas 49
...Creating a Subdomain 49
......Prerequisites to Running nisserver 49
..........Information You Need 50
......· How to Create a New NonRoot Domain 50
......Creating Additional Domains 52
...Populating the New Domain's Tables 52
......Prerequisites to Running nispopulate 53
..........Information You Need 54
......Populating the Master Server Tables 55
..........· How to Populate the Tables From Files 56
..........· How to Populate the Tables From NIS Maps 56
...Designating Replicas 56
......Prerequisites to Running nisserver 57
..........Information You Need 57
......· How to Create a Replica 58
...Initializing Subdomain NIS+ Client Machines 58
......Prerequisites to Running nisclient 59
..........Information You Need 59
......· How to Initialize a New Subdomain Client Machine 60
...Initializing Subdomain NIS+ Client Users 60
......Prerequisites to Running nisclient 60
..........Information You Need 61
......· How to Initialize an NIS+ Subdomain User 61
...Summary of Commands for the Sample NIS+ Namespace 62

4. Setting Up the Root Domain
67
...Standard versus NIS-Compatible Setup Procedures 68
...Establishing the Root Domain 68
......Summary of Steps 68
......· How to Set Up a Root Domain 70
...Root Domain Setup Summary 87

5. Setting Up NIS+ Clients
89
...Client Setup 90
......· How to Set Up an NIS+ Client 92
...Changing a Workstation's Domain 96
......Specifying a Domain Name After Installation 97
......· How to Change a Client's Domain Name 97
...Initializing an NIS+ Client 98
......Broadcast Initialization 99
..........Security Considerations 99
..........Prerequisites 99
..........Information You Need 99
..........· How to Initialize a Client--Broadcast Method 99
......Host-Name Initialization 100
..........Security Considerations 100
..........Prerequisites 100
..........Information You Need 100
..........· How to Initialize a Client--Host-name Method . 100
......Cold-Start File Initialization 101
..........Security Considerations 101
..........Prerequisites 101
..........Information You Need 101
..........· How to Initialize a Client--Cold-Start Method 102
...NIS+ Client Setup Summary 103

6. Setting Up NIS+ Servers
105
...Setting Up an NIS+ Server 105
...... Standard versus NIS-Compatible Setup Procedures 106
......· How to Set Up an NIS+ Server 107
...Adding a Replica to an Existing Domain 109
......· How to Add a Replica Server 110
...Server Setup Summary 112

7. Setting Up a Nonroot Domain
113
...Setting Up a Nonroot Domain 113
...... Standard versus NIS-Compatible Setup Procedures 114
......· How to Set Up a Nonroot Domain 116
...Subdomain Setup Summary 122

8. Setting Up NIS+ Tables
123
...Populating Tables--Options 124
...Populating NIS+ Tables From Files 125
......Security Considerations 125
......Prerequisites 126
......Information You Need 126
......· How to Populate NIS+ Tables From Files 127
...Populating NIS+ Tables From NIS Maps 131
......Security Considerations 132
......Prerequisites 132
......Information You Need 132
......· How to Populate Tables From Maps 133
...Transferring Information From NIS+ to NIS 136
......Security Considerations 137
......Prerequisites 137
......· How to Transfer Information From NIS+ to NIS 137
...Limiting Access to the Passwd Column to Owners and
......Administrators 137
..........Security Considerations 138
..........Prerequisites 138
..........Information You Need 138
......· How to Limit Read Access to the Passwd Column 138
...Table Population Summaries 140

9. Setting Up the Name Service Switch
143
... Selecting an Alternate Configuration File 143
......· How to Select an Alternate Configuration File 144
...Enabling an NIS+ Client to Use DNS 145
......· How to Enable an NIS+ Client to Use DNS 145
...Adding Compatibility With +/- Syntax 146
......· How to Add DNS Compatibility With +/- Syntax 147

10. Introduction to DNS
151
...DNS Basics 152
......Name-to-Address Resolution 152
......DNS Administrative Domains 154
......in.named and DNS Name Servers 155
......DNS Clients and the Resolver 156
...Introducing the DNS Namespace 156
......DNS Namespace Hierarchy 156
......DNS Hierarchy in a Local Domain 157
......DNS Hierarchy and the Internet 158
.......... Joining the Internet 160
..........Domain Names 160
...Administering DNS 162
......Zone s 162
......Reverse Mapping 163
..........The in.addr.arpa Domain 163
......Master Servers 164
..........Primary Name Server 164
..........Secondary Name Server 164
......Root Domain Name Server 165
......Caching and Caching-Only Servers 165
...How DNS Affects Mail Delivery 165

11. Setting Up DNS Clients
167
...Creating the resolv.conf File 167
......Format of /etc/resolv.conf 168
...Modifying the /etc/nsswitch.conf File 168

12. Setting Up DNS Servers
169
...Introduction to Boot and Data Files 170
......The named.boot File 170
......The named.ca File 171
......The hosts File 171
......The hosts.rev File 171
......The named.local File 171
...Setting Up the Boot File 172
..........The directory Line 172
..........The cache Line 173
..........The primary Lines 173
...Setting Up the Data Files 175
......Standard Resource Record Format 175
..........The name Field 176
..........The ttl Field 176
..........The class Field 176
..........The record-type Field 177
..........The record-specific-data Field 177
..........Special Resource Record Characters 177
..........Control Entries 178
......Resource Record Types 179
......Setting Up the named.ca File 180
......Setting Up the hosts File 180
..........SOA-- Start of Authority 182
..........NS--Name Server 184
..........A--Address 184
..........HINFO--Host Information 185
..........WKS--Well-Known Services 186
..........CNAME--Canonical Name 186
..........PTR--Pointer Record 187
..........MX--Mail Exchanger 188
......Setting Up the hosts.rev File 189
......Setting Up the named.local File 189
...Modifying the Data Files 190
...A Practical Example 191
...Setting Up a Root Server for a Local Network 198

Index
201