name to ip resolution is not working .. Strange Scenario ...
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,
google.com has address 126.96.36.199
google.com has address 188.8.131.52
google.com has address 184.108.40.206
ping: unknown host google.com
PING 220.127.116.11 (18.104.22.168) 56(84) bytes of data.
64 bytes from 22.214.171.124: icmp_seq=1 ttl=235 time=335 ms
64 bytes from 126.96.36.199: 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.
Maybe because google is down or they are slow.
I gave google.com 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.
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 01:47 AM.|