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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Client7# ls /var/yp...-rwxr-xr-x 1 root Makefiledrwxr-xr-x 2 root bindingdrwx------ 2 root doc.com ...If the domain name returned by running domainname on a machine is not the sameas the server domain name listed as a directory in /var/yp, the domain namespecified in the machine’s /etc/defaultdomain file is incorrect. Log in as superuseror assume an equivalent role, <strong>and</strong> correct the client’s domain name in the machine’s/etc/defaultdomain file. This assures that the domain name is correct every timethe machine boots. Now reboot the machine.Note – The domain name is case-sensitive.Client Not Bound to ServerIf your domain name is set correctly, ypbind is running, <strong>and</strong> comm<strong>and</strong>s still hang,then make sure that the client is bound to a server by running the ypwhich comm<strong>and</strong>.If you have just started ypbind, then run ypwhich several times (typically, the firstone reports that the domain is not bound <strong>and</strong> the second succeeds normally).No Server AvailableIf your domain name is set correctly, ypbind is running, <strong>and</strong> you get messagesindicating that the client cannot communicate with a server, this might indicate anumber of different problems:■■■Does the client have a /var/yp/binding/domainname/ypservers filecontaining a list of servers to bind to? If not, run ypinit -c <strong>and</strong> specify in order ofpreference the servers that this client should bind to.If the client does have a /var/yp/binding/domainname/ypservers file, arethere enough servers listed in it if one or two become unavailable? If not, addadditional servers to the list by running yppinit -c.If none of the servers listed in the client’s ypservers file are available, the clientsearches for an operating server using broadcast mode. If there is a functioningserver on the client’s subnet, the client will find it (though performance might beslowed during the search). If there are no functioning servers on the client’s subnetcan solve the problem in several ways:■■If the client has no server on the subnet <strong>and</strong> no route to one, you can install anew slave server on that subnet.You can make sure your routers are configured to pass broadcast packets so thatthe client can use broadcast to find a server on another subnet. You can use thenetstat -r comm<strong>and</strong> to verify the route.Chapter 7 • <strong>NIS</strong> Troubleshooting 115

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

Saved successfully!

Ooh no, something went wrong!