1832510 Members
4380 Online
110043 Solutions
New Discussion

ypwhich error

 
bazigardu
Advisor

ypwhich error

Hi All

I have a server which is giving error when I am trying this #ypwhich.
“ypwhich: clnt-create error: RPC: unknown host “

I have run this commands,
#/sbin/init.d/nis.client stop

#/sbin/init.d/nis.client start
it is stoping,but time of starting this

Sry ypbind on host has rejected your request..

How to solve this error??server is having hpux 11.11 OS.

Regards
Suman
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: ypwhich error

Shalom Suman,

The error pretty much means what it says. The NIS configuration points to a server that can not be looked up in NIS or DNS and can not be contacted.

Check the configuration file in /etc/rc.config.d/namesvr for typos and or errors. See that the target server is actually up.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
whiteknight
Honored Contributor

Re: ypwhich error


Suman,

To resolve the problem with this command:

#cp /etc/nsswitch.nis /etc/nsswitch.conf

and try again

WK
Problem never ends, you must know how to fix it
Shahul
Esteemed Contributor

Re: ypwhich error

Hi,

I would start with the NIS server's nslookup, ping to server. Check the NIS server is contactable from client. If that's all right then start with NIS configuration.

Good luck
Shahul