Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot ping using hostname but nslookup gives the answer

Devesh Pant_1
Esteemed Contributor

Cannot ping using hostname but nslookup gives the answer

Hello all,
I have a strange problem with only Tru64 5.1b pk3 servers ( not with any other operating system )
When I try to ping a cluster service that moved from one member to the other along with it's IP address, these tru64 servers stopped pinging it however the nslookup resolves the name and gives back the correct IP address.

prwdrew> nslookup hfoclib
Server: dnsp.sselw.com
Address: 157.209.72.202

Name: hfoclib.sselw.com
Address: 157.209.77.9

prwdrew>ping hfoclib.sselw.com
ping: unknown host hfoclib.sselw.com

Someone suggested that the arp cache needs to be flushed. Any ideas how this could be done
Any help would be appreciated
6 REPLIES
Ivan Ferreira
Honored Contributor

Re: Cannot ping using hostname but nslookup gives the answer

Ensure that both files, /etc/nsswitch.conf and /etc/svc.conf, are configured to use DNS.

/etc/nsswitch.conf

hosts: files dns

/etc/svc.conf

hosts=local,bind
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Devesh Pant_1
Esteemed Contributor

Re: Cannot ping using hostname but nslookup gives the answer

Yes Ivan they are
both the nsswitch.conf and the svc.conf are fine.
It is just puzzling me

Devesh
Ivan Ferreira
Honored Contributor

Re: Cannot ping using hostname but nslookup gives the answer

This is weird. You can try using the arp -d command. Check your arp tables with arp -a.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Han Pilmeyer
Esteemed Contributor

Re: Cannot ping using hostname but nslookup gives the answer

This is a resolver issue, not an arp issue. You could demonstrate this by using the IP address with the ping command instead of the name. It would also be interesting to see if the reverse name lookup works with the ping command if you do that.

Can you show us the following files:
- /etc/resolv.conf
- /etc/svc.conf
- /etc/nsswitch.conf
Stiwi Wondrusch
Trusted Contributor

Re: Cannot ping using hostname but nslookup gives the answer

Is hfoclib your real hostname or just an example? (Thinking about special characters)

rgds Stiwi
Shardha
Valued Contributor

Re: Cannot ping using hostname but nslookup gives the answer

Dear Devesh,

Please send the hosts entry for this server and also, /etc/resolv.conf.

Shardha