Build the Master Server

Now we'll configure the machines that are part of the NIS domain. The first step is to get the master (tin, in this case) up and running.

Let's first set the domain name and also make sure it's retained across reboots by adding it to the /etc/defaultdomain file:

tin# domainname nis.solarisbootcamp.com
tin# domainname > /etc/defaultdomain
tin# domainname
nis.solarisbootcamp.com
tin#

Now let's run ypinit to initialize the master. This will prompt us to enter the list of servers we will use, so we'll add them all at this point. This information is stored in a map named ypservers, which is known as the server map. For now we'll add the servers to this map by passing them onto ypinit, but later we'll see how to update the ...

Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.