|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Administration: Naming and Directory Services Oracle Solaris 11 Information Library|
Add the host name of the NIS server and its IP address to the /etc/hosts file.
Verify that the DNS domain name is set.
# svcprop -p config/domainname svc:/network/nis/domain:default example.com
Prompt for the NIS server host name.
# /usr/sbin/ypinit -c Server name: Type the NIS server host name
Restart the NIS services by performing one of the following steps:
For the services to persist across reboots, run the svcadm command.
# svcadm enable svc:/network/nis/client
For the services to persist until reboot only, run the ypstop and ypstart commands.
# /usr/lib/netsvc/yp/ypstop # /usr/lib/netsvc/yp/ypstart