View Single Post

   
  #2 (permalink)  
Old 01-16-2008, 10:34 AM
Richard B. Gilbert
 
Posts: n/a
Default Re: ping hostname failed while ping IP_Address working

Salman wrote:
> BismillahirRehmanirRahim
>
> Hi Admins,
>
> i am facing a strange problem in one of our SunFire v215 Servers.
>
> the ping to the hostname of the Server and ping to the hostname of any
> other server in /etc/hosts fail.
>
> but if you ping with IP_Adress it get success. i.e.
>
> hostname=mytest ; IP=10.54.23.1 , hostname2=mydev ; IP2=10.54.23.2

What is this supposed to do?

>
> ping mytest
> [ failed ]
>
> ping 10.54.23.1
> [success]
>
> ping mydev
> [ failed ]
>
> ping 10.54.23.2
> [ success]
>
> I dont know why its unable to resolve hostname from /etc/hosts.
>
> i didnt find any error in /var/adm/messages
>
> its very urgent, hope to hear soon from you.
>
> Your Junior
> Salman
>


How about posting the contents of /etc/hosts?

Also, check /etc/nsswitch.conf.

Does it have "hosts files" or "hosts files,dns"?


Reply With Quote