John P . Looney's [john at antefacto.com] 44 lines of wisdom included:
:>[root at dogbert /root]# cat /etc/hosts
:>127.0.0.1 localhost.localdomain localhost
:>172.24.1.101 dogbert.internal.antefacto.com dogbert
:>:>[root at dogbert /root]# rpcinfo -u dogbert ypserv
:>program 100004 version 1 ready and waiting
:>program 100004 version 2 ready and waiting
:>[root at dogbert /root]# rpcinfo -u localhost ypserv
:>rpcinfo: RPC: Timed out
:>program 100004 version 1 is not available
:>rpcinfo: RPC: Timed out
:>program 100004 version 2 is not available
Make sure the NIS domainname is in the right place...
Solaris and Debian (all the ones I've used):
/etc/defaultdomain
RedHat:
Has a var NISDOMAIN in /etc/sysconfig/network
There are some other distro specific ones, SuSE is in /etc/rc.config
afaik, I'm not sure if that's the problem, but it's worth checking
out.
I also presume you ran
dominname nis.domain
I always use the proper domain name as opposed to localhost, the
more advanced tutorials/explanations of using rpcinfo have used the
hostnames instead of localhost and have always been perfect for me.
I can't just think of a good reason why it's not working, but it
might be a problem with rpcinfo itself or the way you have it
setup(?)
Phil.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!