|Skip Navigation Links|
|Exit Print View|
|System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)|
Add the hostname of the NIS server and its IP address to the /etc/hosts file.
Run the domainname command to populate the /etc/defaultdomain file.
# /usr/bin/domainname name-of-NIS-domain
Prompt for the NIS server host name.
# /usr/sbin/ypinit -c Server name: Type the NIS server hostname
Restart the NIS services by performing one of the following steps.
For the services to persist across reboots, run the svcadm command:
# svcadm enable -r 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