View Single Post

   
  #3 (permalink)  
Old 01-16-2008, 11:34 AM
Les.
 
Posts: n/a
Default Re: ping hostname failed while ping IP_Address working

Well I am getting a bit long in the tooth (Solaris 7) but it sounds like you
might have an error in /etc/nsswitch.conf

Do you have a line which says:

hosts: files dns ....etc?

If this is the case, the system should check the hosts file for name
resolution first. If the "files" bit is missing, it won't check it.

Les.
"Salman" <hudamuslim@gmail.com> wrote in message
news:1185993436.721496.85810@q75g2000hsh.googlegro ups.com...
> 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
>
> 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
>



Reply With Quote