Internet Connected, IP Connectivity is OK, but cannot ping or open websites using site names.

Asked by ibraheem

Hi
I am using Ubuntu 9.10 since a month or so. every thing was working fine up till now. But today i am facing the problem that I cannot browse internet using site names. My internet connectivity is OK. i can ping my DNS server and IPs of some sites that i know. also i resolved google.com's IP in another PC and tried to open google in my PC using the IP address and i was able to open the site. but whenever i ping google.com or any other website it says error: unknown host google.com. i have restarted my PC a lot of times but did not work. restarted network-manager as well but still in vain.
one thing more, i have tried to update ubuntu and it worked well.
i have also changed my DNS settings to 4.2.2.2 which is also pingable but still i am unable to ping any site using its name and no browsing as well.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
ibraheem
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

run:

gksudo gedit /etc/resolv.conf

add these 2 lines:

nameserver 8.8.8.8
nameserver 8.8.4.4

Save the new file and try web browsing (those are googles public DNS servers and are dead easy to remember)

Revision history for this message
Iowan (iowan) said :
#2

If you get an address via DHCP, you can add those nameservers to the "prepend" line in /etc/dhcp3/dhclient.conf to move them to the top of the list - or use "supercede" to make them the list.

Revision history for this message
ibraheem (m-ibraheem) said :
#3

Everyone,
I have done all this but the problem is still there. with all these settings i was able to use my internet previously but i dont know what happened. I can open google using its IP but still not being able to ping or open it using its name. same is the case for all otherwebsites.
when i ping it immediately says (see in the inverted commas below)
"
ibraheem-laptop:~$ ping orkut.com
ping: unknown host orkut.com"
I am hung up with it, dont know what to do. i have also checked wireshark traces, when i ping using IPs, wireshark shows me complete set of messages, but when i ping using name or open site in a browser there is no single message shown in wireshark regarding DNS querry.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Can you givethe output of:

dig www.google.co.uk

Thanks

Revision history for this message
ibraheem (m-ibraheem) said :
#5

I got the solution. it given below:

sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf

actually the file /etc/resolvconf/run/resolv.conf was missing a soft link to /etc/resolve.conf. the link was created and the problem solved.

Revision history for this message
ibraheem (m-ibraheem) said :
#6

the problem has been solved now.

Revision history for this message
Ton Visser (tvisser2) said :
#7

I have the same problem using 10.04, FireFox will only open Google related websites such as GMail, Maps , the search function is ok, I get 46.900.000 results in just 0,23 seconds.
But I am not getting opened any other website, after a while i get three possibilaties, of which only the third could be the matter: If your computernetwork is protected by a firewall or proxy make sure that FireFox is permitted to acces the web.
And it is not only FireFox, other browsers show the same problem.
But other computers using the same router are working perfectly, one with Ubuntu 9.10, the other one with Windows XP.
Even the laptop showing the problem has worked perfectly on the same connection using 9.10 but one day the problem showed up.
I installed 10.04 hoping get rid of the problem, but it did not help.

Anyone who has the answer?

Ton.

Revision history for this message
Ton Visser (tvisser2) said :
#8

One more question about this problem: when i have GMail opened on my laptop, the one that won´t open any not-related google site, the adress box begins with a blue part as background with the red GMail logo and the words google.com, after that blue part the background is white again with black text as normal starting with https and so on.
When I point my mouse to that blue part I have a popup saying: " Verified by: Thawte Consulting (PTY) Ltd."
I do not see that on any other computer where I have opened GMail.
Could that possibly be the reason I cannot open any other website on my laptop?

Thanks and Happy Easter,

Ton.

Revision history for this message
ibraheem (m-ibraheem) said :
#9

can u ping other sites or not? also take the tracepath/traceroute and paste the output for a couple of sites. Is your DNS working fine? if the problem was same with 9.10 and now with 10.04, there must be some LAN problem and not with the PC...