JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information


Part I About Naming and Directory Services

1.  Naming and Directory Services (Overview)

2.  The Name Service Switch (Overview)

Part II DNS Setup and Administration

3.  DNS Setup and Administration (Reference)

Part III NIS Setup and Administration

4.  Network Information Service (NIS) (Overview)

5.  Setting Up and Configuring NIS Service

6.  Administering NIS (Tasks)

Password Files and Namespace Security

Administering NIS Users

How to Add a New NIS User to an NIS Domain

Setting User Passwords

NIS Netgroups

Working With NIS Maps

Obtaining Map Information

Changing a Map's Master Server

How to Change a Map's Master Server

Modifying Configuration Files

How to Modify Configuration Files

Modifying and Using the Makefile

Working With the Makefile

Changing Makefile Macros/Variables

Modifying Makefile Entries

How to Modify the Makefile to Use Specific Databases

How to Modify the Makefile to Delete Databases

Updating and Modifying Existing Maps

How to Update Maps Supplied With the Default Set

Maintaining Updated Maps

Propagating an NIS Map

Using cron for Map Transfers

Using Shell Scripts With cron and ypxfr

Directly Invoking ypxfr

Logging ypxfr Activity

Modifying Default Maps

Using makedbm to Modify a Non-Default Map

Creating New Maps from Text Files

Adding Entries to a File-Based Map

Creating Maps From Standard Input

Modifying Maps Made From Standard Input

Adding a Slave Server

How to Add a Slave Server

Using NIS With C2 Security

Binding to a Specific NIS Server

Changing a Machine's NIS Domain

How to Change a Machine's NIS Domain Name

Using NIS in Conjunction With DNS

How to Configure Machine Name and Address Lookup Through NIS and DNS

Dealing with Mixed NIS Domains

Turning Off NIS Services

7.  NIS Troubleshooting

Part IV LDAP Naming Services Setup and Administration

8.  Introduction to LDAP Naming Services (Overview/Reference)

9.  LDAP Basic Components and Concepts (Overview)

10.  Planning Requirements for LDAP Naming Services (Tasks)

11.  Setting Up Sun Java System Directory Server With LDAP Clients (Tasks)

12.  Setting Up LDAP Clients (Tasks)

13.  LDAP Troubleshooting (Reference)

14.  LDAP General Reference (Reference)

15.  Transitioning From NIS to LDAP (Overview/Tasks)

Part V Active Directory Naming Service

16.  Setting Up Oracle Solaris Active Directory Clients



Using NIS in Conjunction With DNS

Typically, NIS clients are configured with the nsswitch.conf file to use only NIS for machine name and address lookups. If this type of lookup fails, an NIS server can forward these lookups to DNS.

How to Configure Machine Name and Address Lookup Through NIS and DNS

  1. Become an administrator.

    For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.

  2. The two map files, hosts.byname and hosts.byaddr must include the YP_INTERDOMAIN key. To test this key, edit the Makefile and modify the following lines.



    makedbm will now start with the -b flag when it makes the maps, and the YP_INTERDOMAIN key will be inserted into the ndbm files.

  3. Run the make command to rebuild maps.
    # /usr/ccs/bin/make hosts
  4. Check that all the NIS server's /etc/resolv.conf files point to valid nameservers.

    Note - If you have NIS servers that are not running Solaris, Release 2, make sure YP_INTERDOMAIN exists in the hosts maps.

  5. To enable DNS forwarding, restart each server.
    # svcadm restart network/nis/server:<instance>

    In this implementation of NIS, ypserv automatically starts with the -d option to forward requests to DNS.

Dealing with Mixed NIS Domains

If the master and slave servers are not both running Solaris 2, refer to the following table for how to avoid potential problems. The notation “4.0.3+” refers to that and later releases. makedm -b is a reference to the “B” variable in the Makefile.

Table 6-1 NIS/DNS in Heterogeneous NIS Domains

Oracle Solaris NIS
Master: makedbm -b

Slave: ypxfr

Master: makedbm -b

Slave: ypxfr -b

Master: ypserv -d

Slave: ypxfr -b

Oracle Solaris NIS
Master: makedbm -b

Slave: ypxfr

Master: makedbm -b

Slave: ypxfr

Master: ypserv -d

Slave:ypxfr with resolv.conf or ypxfr -b