Networking Forums

Networking Forums > Computer Networking > Linux Networking > can ping IP but not URL???

Reply
Thread Tools Display Modes

can ping IP but not URL???

 
 
Bruce Ding
Guest
Posts: n/a

 
      06-11-2004, 04:00 AM
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
 
 
 
 
Bill Unruh
Guest
Posts: n/a

 
      06-11-2004, 07:29 AM
(E-Mail Removed) (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
 
Bruce Ding
Guest
Posts: n/a

 
      06-11-2004, 02:38 PM
(E-Mail Removed) (Bill Unruh) wrote in message news:<cabn05$rmd$(E-Mail Removed)>...
> (E-Mail Removed) (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
 
Ian Northeast
Guest
Posts: n/a

 
      06-11-2004, 03:02 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When Client Ping DC not respond,but when DC ping clients they resp ahmad Windows Networking 3 07-17-2007 07:44 PM
Ping 224.0.0.2 ping: sendmsg: Operation not permitted interessato@gmail.com Linux Networking 4 01-24-2006 02:47 AM
Ping from cron not having same effect as ping from console Dean Schulze Linux Networking 2 02-24-2004 08:10 PM
Some services working but can't ping (not ping-able) Micah Elliott Linux Networking 1 12-05-2003 09:47 AM
Windows ping and Linux ping command? tom Linux Networking 5 11-10-2003 08:52 PM



1 2 3 4 5 6 7 8 9 10 11