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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |