817-0962 System Administration Guide Naming and Directory Services (DNS, NIS, and LDAP).pdf

(1438 KB) Pobierz
29887629 UNPDF
System Administration Guide:
Naming and Directory Services
(DNS, NIS, and LDAP)
Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054
U.S.A.
Part No: 817–0962–10
August 2003
29887629.001.png
Copyright 2003 Sun Microsystems, Inc.
4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved.
This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No
part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any.
Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S.
and other countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, docs.sun.com, AnswerBook, AnswerBook2, and Solaris are trademarks, registered trademarks, or service marks
of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks
of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun
Microsystems, Inc.
The OPEN LOOK and Sun™ Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the
pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a
non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs
and otherwise comply with Sun’s written license agreements.
Federal Acquisitions: Commercial Software–Government Users Subject to Standard License Terms and Conditions.
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE
DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Copyright 2003 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Tous droits réservés.
Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l’utilisation, la copie, la distribution, et la
décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans
l’autorisation préalable et écrite de Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative
aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun.
Des parties de ce produit pourront être dérivées du système Berkeley BSD licenciés par l’Université de Californie. UNIX est une marque déposée aux
Etats-Unis et dans d’autres pays et licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, docs.sun.com, AnswerBook, AnswerBook2, et Solaris sont des marques de fabrique ou des marques déposées, ou
marques de service, de Sun Microsystems, Inc. aux Etats-Unis et dans d’autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des
marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d’autres pays. Les produits portant les marques
SPARC sont basés sur une architecture développée par Sun Microsystems, Inc.
L’interface d’utilisation graphique OPEN LOOK et Sun™ a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît
les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d’utilisation visuelle ou graphique pour l’industrie
de l’informatique. Sun détient une licence non exclusive de Xerox sur l’interface d’utilisation graphique Xerox, cette licence couvrant également les
licenciés de Sun qui mettent en place l’interface d’utilisation graphique OPEN LOOK et qui en outre se conforment aux licences écrites de Sun.
CETTE PUBLICATION EST FOURNIE “EN L’ETAT” ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N’EST ACCORDEE, Y COMPRIS DES
GARANTIES CONCERNANT LA VALEUR MARCHANDE, L’APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION
PARTICULIERE, OU LE FAIT QU’ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE
S’APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU.
030403@5533
29887629.002.png
Contents
Preface
17
Part I
About Naming and Directory Services
1 Naming and Directory Services (Overview)
23
What Is a Naming Service?
23
Solaris Naming Services
29
/etc Files
30
Naming Services: A Quick Comparison
32
2 The Name Service Switch (Overview)
33
38
The nsswitch.conf Template Files
38
The Default Switch Template Files
39
Selecting a Different Configuration File
43
Modifying the Name Service Switch
43
3
Ensuring Compatibility With +/- Syntax
45
The Switch File and Password Information
46
Part II
DNS Setup and Administration
3 Domain Name System (Overview)
49
53
Server Configuration and Data File Names
53
Names of DNS Data Files
54
Trailing Dots in Domain Names
56
DNS Clients and the Resolver
56
DNS Hierarchy in a Local Domain
60
DNS Hierarchy and the Internet
61
Reverse Mapping
65
Setting Up the resolv.conf File
67
Configuring a Network For DNS
68
How to Set up a DNS Client
68
How to Set Up a DNS Server
70
How to Specify a Master Server
71
How to Specify a Cache-Only or Stub Server
73
How to Add DNS Compatibility and +/- Syntax
74
Setting up DNS Servers
75
How to Initialize the Server
75
4 System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP) • August 2003
How to Test Your Installation
75
How to Add Additional Servers
77
How to Change the SOA Serial Number
77
How to Force in.named to Reload DNS Data
78
Adding and Deleting Clients
78
How to Remove a Client
79
Enabling a Client to Use IPv6
80
How to Enable a Client to Use IPv6
80
83
How to Migrate from BIND 4.9.x to BIND 8.3.3
84
How to Enable DNS Forwarding Capabilities on an Older NIS Client
84
5 DNS Administration (Reference)
87
A Practical Example
87
Setting Up the Data Files
93
Resource Record Types
93
Setting Up Subdomains—Different Zones
95
The DNS Namespace Hierarchy
96
Domains and Subdomains
96
How DNS Affects Mail Delivery
97
DNS Configuration and Data Files
97
Names of DNS Data Files
97
The named.conf File
98
The named.ca File
101
The hosts.rev File
104
The named.local File
105
Contents 5
Zgłoś jeśli naruszono regulamin