LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2006, 10:59 PM   #1
gudneo
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Rep: Reputation: 0
Arrow 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 google.com
google.com has address 72.14.207.99
google.com has address 64.233.167.99
google.com has address 64.233.187.99

ping google.com
ping: unknown host google.com

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

elinks google.com
Host not found

elinks 72.14.207.99
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.

Regards
Neo

Last edited by gudneo; 10-17-2006 at 11:31 PM.
 
Old 10-17-2006, 11:03 PM   #2
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478

Rep: Reputation: 30
Maybe because google is down or they are slow.
 
Old 10-17-2006, 11:27 PM   #3
gudneo
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Arrow

Hi cereal83,

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.

Regards
Neo
 
Old 10-19-2006, 12:56 AM   #4
gudneo
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Hi Friends,

Thank you for posting ...

Solved the problem,


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

Regards
Neo
 
  


Reply

Tags
dns, internet, name, resolvconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ping: unknown host www.google.com tcma Linux - Networking 7 03-02-2012 11:47 PM
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 12:55 PM
LXer: The Google Command List: Data Mining using Google LXer Syndicated Linux News 0 01-21-2006 03:31 PM
ping: unknown host www.google.com juanjavier_xxx Debian 8 01-02-2006 01:47 PM
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM


All times are GMT -5. The time now is 05:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration