Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)
Previous Next

Binding to a Specific NIS Server

Use the following steps to bind to an NIS server that you specify. For more information, see the ypinit(1M), ypstart(1M), and svcadm(1M) man pages.

  1. Add the hostname of the NIS server and its IP address to the /etc/hosts file.

  2. Run the domainname command to populate the /etc/defaultdomain file.

    # /usr/bin/domainname name-of-NIS-domain
  3. Prompt for the NIS server host name.

    # /usr/sbin/ypinit -c
    Server name: Type the NIS server hostname
  4. 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
Previous Next

 
 
  Published under the terms fo the Public Documentation License Version 1.01. Design by Interspire