13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using <strong>NIS</strong> in Conjunction With <strong>DNS</strong>Typically, <strong>NIS</strong> clients are configured with the nsswitch.conf file to use only <strong>NIS</strong> formachine name <strong>and</strong> address lookups. If this type of lookup fails, an <strong>NIS</strong> server canforward these lookups to <strong>DNS</strong>.▼How to Configure Machine Name <strong>and</strong> AddressLookup Through <strong>NIS</strong> <strong>and</strong> <strong>DNS</strong>1. Become superuser or assume an equivalent role.Roles contain authorizations <strong>and</strong> privileged comm<strong>and</strong>s. For more informationabout roles, see “Using Role-Based Access Control (Tasks)” in System AdministrationGuide: Security <strong>Services</strong>.2. The two map files, hosts.byname <strong>and</strong> hosts.byaddr must include theYP_INTERDOMAIN key. To test this key, edit the Makefile <strong>and</strong> modify thefollowing lines.#B=-bB=toB=-b#B=makedbm will now start with the -b flag when it makes the maps, <strong>and</strong> theYP_INTERDOMAIN key will be inserted into the ndbm files.3. Run the make comm<strong>and</strong> to rebuild maps.# /usr/ccs/bin/make hosts4. Check that all the <strong>NIS</strong> server’s /etc/resolv.conf files point to validnameservers.Note – If you have <strong>NIS</strong> servers that are not running Solaris, Release 2, make sureYP_INTERDOMAIN exists in the hosts maps.5. To enable <strong>DNS</strong> forwarding, restart each server.# svcadm restart network/nis/server:In this implementation of <strong>NIS</strong>, ypserv automatically starts with the -d option toforward requests to <strong>DNS</strong>.Chapter 6 • Administering <strong>NIS</strong> (Tasks) 111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!