1832857 Members
3328 Online
110047 Solutions
New Discussion

host lookup trouble

 
Mr LAMARTA
Advisor

host lookup trouble

Hi all !
I've a B2000 Box under 10.2 ACE
I've configured host lookup in nsswitch.conf like this :
dns [NOTFOUND=continue] nis [NOTFOUND=continue] files.
I'm trying to ping a host which is not known neither in the DNS, nor in the nis but which is in the file. It doesn't work !
but, when i try nslookup and then give the name of that host, nslookup find it in the /etc/hosts file after trying dns and nis.
does anyone have an idea about this ?
thanks seb.
Seb
4 REPLIES 4
Olav Baadsvik
Esteemed Contributor

Re: host lookup trouble

Hi,

You should check your network configuration. Is it necessary to set
up routing to the host you are trying to ping to?

The fact that nslookup returns the ip-address does not mean that the
network connectioin to the node is ok.

Try ping in the other direction.

Olav
BFA6
Respected Contributor

Re: host lookup trouble

Hi,

nslookup is showing that the name resolution is working. Have you tried doing a traceroute to see how far you get ?

Is there a route back from the server you are trying to ping, to where you are doing the ping from ?

Hilary
Mr LAMARTA
Advisor

Re: host lookup trouble

Olaff, hilary

the hosts are on the same network !
but what is suprising is that when I ping i get the message -> ping : unknown host ! as if the name search order indicated in nswitch was ignored by ping !
Seb
Mr LAMARTA
Advisor

Re: host lookup trouble

I've found a solution !
i ve changed my nsswitch.conf to look like :
hosts : dns [NOTFOUND=continue TRYAGAIN=continue] nis files
and then i works! (my dns is working, i'm sure of it !)

Hey HP! job for another PHNE !!! ;-)
Seb