can ping IP but not URL???

This is a discussion on can ping IP but not URL??? within the Linux Networking forums, part of the Linux Forums category; Hi, folks First, I must admit I'm a linux newbie. But things seem weird. I can ping eternal IP ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-11-2004
Bruce Ding
 
Posts: n/a
Default can ping IP but not URL???

Hi, folks

First, I must admit I'm a linux newbie. But things seem weird. I
can ping eternal IP addresses(whatever it is). And I can use nslookup
or dig. They all work fine. But I can't ping a website, say
www.google.com. Nor can I open it in Mozilla. I checked with the
/etc/resolv.conf, and it does have line: nameserver ***.***.***.***
I can only reach so far. And maybe some other config files wrong?


regards
Reply With Quote
  #2 (permalink)  
Old 06-11-2004
Bill Unruh
 
Posts: n/a
Default Re: can ping IP but not URL???

dss_store@yahoo.com (Bruce Ding) writes:

]Hi, folks

] First, I must admit I'm a linux newbie. But things seem weird. I
]can ping eternal IP addresses(whatever it is). And I can use nslookup
]or dig. They all work fine. But I can't ping a website, say
]www.google.com. Nor can I open it in Mozilla. I checked with the
]/etc/resolv.conf, and it does have line: nameserver ***.***.***.***
] I can only reach so far. And maybe some other config files wrong?

Can you ping that IP address after the nameserver? Are you sure that
address is correct?
If you can ping an IP but not a name, the problem is with DNS resolving.
a) your nameserver in /etc/resolv.conf is wrong.
b) your permissions on /etc/resolv.conf are wrong (rw-r--r--)
c) your filewall blocks dns queries.

Reply With Quote
  #3 (permalink)  
Old 06-11-2004
Bruce Ding
 
Posts: n/a
Default Re: can ping IP but not URL???

unruh@string.physics.ubc.ca (Bill Unruh) wrote in message news:<cabn05$rmd$1@string.physics.ubc.ca>...
> dss_store@yahoo.com (Bruce Ding) writes:
>
> ]Hi, folks
>
> ] First, I must admit I'm a linux newbie. But things seem weird. I
> ]can ping eternal IP addresses(whatever it is). And I can use nslookup
> ]or dig. They all work fine. But I can't ping a website, say
> ]www.google.com. Nor can I open it in Mozilla. I checked with the
> ]/etc/resolv.conf, and it does have line: nameserver ***.***.***.***
> ] I can only reach so far. And maybe some other config files wrong?
>
> Can you ping that IP address after the nameserver? Are you sure that
> address is correct?
> If you can ping an IP but not a name, the problem is with DNS resolving.
> a) your nameserver in /etc/resolv.conf is wrong.
> b) your permissions on /etc/resolv.conf are wrong (rw-r--r--)
> c) your filewall blocks dns queries.


Yes, I can ping IP addresses after the nameserver. I can even use
nslookup and dig to resolve host names(from these, dns server should
be fine). But I just can't ping hostname in terminal and use mozilla.
Reply With Quote
  #4 (permalink)  
Old 06-11-2004
Ian Northeast
 
Posts: n/a
Default Re: can ping IP but not URL???

On Fri, 11 Jun 2004 07:38:47 -0700, Bruce Ding wrote:


> Yes, I can ping IP addresses after the nameserver. I can even use
> nslookup and dig to resolve host names(from these, dns server should be
> fine). But I just can't ping hostname in terminal and use mozilla.


Check /etc/nsswitch.conf. Ensure the "hosts" line contains "dns".

Dig and nslookup (and host) don't use nsswitch.conf, just about everything
else does.

Regards, Ian
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0