-   Linux - Networking (
-   -   why host working and ping not ? (

gudneo 10-17-2006 11:59 PM

name to ip resolution is not working .. Strange Scenario ...
Hi All,

I am using debian and net is connected to this debian system and it is shared. I have a user account in this machine, which i use for my daytoday works. But today when i login as user i am not able to browse internet using firefox or any other browser (elinks also). But the hosts (net is shared from this system) are getting internet without any problem. I checked my resolv.conf .. it is fine. I flushed all my iptables including nat. The condition is the same.

This is the output after turning of firewall,

host has address has address has address

ping: unknown host

PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=235 time=335 ms
64 bytes from icmp_seq=2 ttl=235 time=333 ms

Host not found

Google home page.

I gave google as an example. This is the problem for all web addresses. name to ip resolution is not taking place when we use a browser.

Could you please help me to solve this strange problem.


cereal83 10-18-2006 12:03 AM

Maybe because google is down or they are slow.

gudneo 10-18-2006 12:27 AM

Hi cereal83,

I gave as an example.
It is same for all web addresses. Name to ip resolution is not taking place when using a browser. But host command will return the ip address.

I can't figure out a reson for that.


gudneo 10-19-2006 01:56 AM

Hi Friends,

Thank you for posting ...

Solved the problem,

Open .. /etc/nsswitch.conf, see "hosts: files dns" is in this order.


All times are GMT -5. The time now is 06:51 PM.