If the domain name is not set properly, network utilities will hang waiting for ypbind to bind to an invalid domain.
To check if the NIS domain name is set, use the
This should display the NIS domain name. If the domain name is missing or incorrect, check the YPDOMAIN variable in /etc/nis to make sure it is set to the correct domain.
To check if NIS is bound to the correct server, use
the ypwhich command:
This should return the name of the NIS server. If
this hangs or fails, the local machine is unable
to bind to the remote NIS server. Use the rpcinfo
command to check whether the ypbind program is running
on the local machine:
rpcinfo -u server_name ypbind