twrfte
asked on
One NIS client can't resolve host names
I am trying to setup NIS on a 3-node network:
* giraffe: NIS server running ubuntu 7.10 server
* owl: client runing 7.10 ubuntu desktop
* wolf: client running 8.04 ubuntu desktop
Symptoms:
* when I restart wolf, NIS won't resolve names until i restart ypbind; not an issue on owl
* after ypbind is restart on wolf, yptest still fails one of the tests:
Test 2: ypbind
Can't communicate with ypbind
owl fails the same way
* I restart the server with debug turned on (ypserv -d) and run yptest from the client I see some odd errors:
ypproc_match(): [From: 192.168.0.92:50307]
domainname = "quince.nis"
mapname = "hosts.byaddr"
keydat = "192.168.0.90"
connect from 192.168.0.92
ypdb_open("quince.nis", "hosts.byaddr")
Found: quince.nis/hosts.byaddr (2)
ypdb_close() called
-> Error #-3
ypproc_match(): [From: 192.168.0.92:45633]
domainname = "quince.nis"
mapname = "passwd.byname"
keydat = "nobody"
connect from 192.168.0.92
ypdb_open("quince.nis", "passwd.byname")
Found: quince.nis/passwd.byname (1)
ypdb_close() called
-> Error #-3
ypproc_first(): [From: 192.168.0.92:44741]
domainname = "quince.nis"
mapname = "passwd.byname"
* giraffe: NIS server running ubuntu 7.10 server
* owl: client runing 7.10 ubuntu desktop
* wolf: client running 8.04 ubuntu desktop
Symptoms:
* when I restart wolf, NIS won't resolve names until i restart ypbind; not an issue on owl
* after ypbind is restart on wolf, yptest still fails one of the tests:
Test 2: ypbind
Can't communicate with ypbind
owl fails the same way
* I restart the server with debug turned on (ypserv -d) and run yptest from the client I see some odd errors:
ypproc_match(): [From: 192.168.0.92:50307]
domainname = "quince.nis"
mapname = "hosts.byaddr"
keydat = "192.168.0.90"
connect from 192.168.0.92
ypdb_open("quince.nis", "hosts.byaddr")
Found: quince.nis/hosts.byaddr (2)
ypdb_close() called
-> Error #-3
ypproc_match(): [From: 192.168.0.92:45633]
domainname = "quince.nis"
mapname = "passwd.byname"
keydat = "nobody"
connect from 192.168.0.92
ypdb_open("quince.nis", "passwd.byname")
Found: quince.nis/passwd.byname (1)
ypdb_close() called
-> Error #-3
ypproc_first(): [From: 192.168.0.92:44741]
domainname = "quince.nis"
mapname = "passwd.byname"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> * ping resolves the name but ssh does not
> bill@wolf:~$ ssh giraffe
> ssh: connect to host giraffe port 22: Connection refused
ssh *does* resolve giraffe, but giraffe refuses the connection. That is a different problem.
> bill@wolf:~$ ssh giraffe
> ssh: connect to host giraffe port 22: Connection refused
ssh *does* resolve giraffe, but giraffe refuses the connection. That is a different problem.
ASKER
ravenpl:
I rebuilt my nis db and it made no difference. on the other hand, putting ypbind in the rc.local does work. But why should it?
I rebuilt my nis db and it made no difference. on the other hand, putting ypbind in the rc.local does work. But why should it?
ASKER
duncan:
do you know what the problem might be? do i have to file it as a separate case?
do you know what the problem might be? do i have to file it as a separate case?
Check IPTABLES settings on giraffe. Only file separate Q if problem remains unresolved after you're satisfied with NIS answer(s)
ASKER
* ping resolves the name but ssh does not
bill@wolf:~$ ssh giraffe
ssh: connect to host giraffe port 22: Connection refused
PING giraffe.xxxxx.com (127.0.1.1) 56(84) bytes of data.
64 bytes from wolf.xxxxx.com (127.0.1.1): icmp_seq=1 ttl=64 time=0.197 ms