|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Administration: Naming and Directory Services Oracle Solaris 11 Information Library|
Before you configure machines as NIS servers or clients, you must plan the NIS domain.
Decide which machines will be in your NIS domain. An NIS domain does not have to mirror your DNS domain. A DNS domain can have more than one NIS domain, and machines can exist in your DNS domain that are outside of your NIS domain.
An NIS domain name can be 256 characters long. A good practice is to limit domain names to no more than 32 characters. NIS domain names are case-sensitive. For convenience, you can choose to use your Internet domain name as the basis for your NIS domain name. Be aware that users might become confused if the NIS domain name includes capitals, but the DNS domain name does not. For example, if your Internet domain name is doc.com, you can also name your NIS domain doc.com. If you wanted to divide doc.com into two NIS domains, for example, one for the sales department and the other for the manufacturing department, you could name one domain sales.doc.com and the other domain manf.doc.com.
Note - Merging and administering split NIS domains can be very difficult, so ensure that you have a good reason to split an NIS domain.
Before a machine can use NIS services, the correct NIS domain name and machine name must be set. A machine's name is set in the config/nodename property of the svc:/system/identity:node service. The machine's domain name is set in the config/domainname property of the svc:/network/nis/domain service. These properties are read at boot time. The contents are used by the uname -S and domainname commands, respectively.
Select one machine to be the master server. Decide which machines will be slave servers.
Decide which machines will be NIS clients. Typically, all machines in your NIS domain are set to be NIS clients, although this is not necessary.