Go to main content

Working With Oracle® Solaris 11.3 Directory and Naming Services: DNS and NIS

Exit Print View

Updated: October 2017

Planning Your NIS Domain

Before you configure stem as NIS servers or clients, you must plan the NIS domain.

Decide which systems 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 systems 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 example.com, you can also name your NIS domain example.com. If you wanted to divide example .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. example.com and the other domain manf. example.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 by the hostname command. The machine's domain name is set by the domainname command. The hostname and domainname commands can be used to display the machine name and the NIS domain name.

Identify Your NIS Servers and Clients

Select one physical machine to be the master server. Decide which physical machines will be slave servers.

Decide which systems will be NIS clients. Typically, all systems in your NIS domain are set to be NIS clients, although this is not necessary.