Ubuntu wifi (wireless) connected but no internet connection
by John on Jun.07, 2009, under Ubuntu, webbook
Basically i was having some trouble with my webbook with Ubuntu on it were I could connect to my router, however i couldn’t then connect to the internet yet other devices could.
To see if you have the same problem open up Terminal
Applications > Accessories > Terminal
then type
ping -c 4 www.google.com
you should get something similar to
john@johnhome:~$ ping -c 4 www.google.com
PING www.l.google.com (209.85.229.99) 56(84) bytes of data.
64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=1 ttl=239 time=41.0 ms
64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=2 ttl=239 time=40.2 ms
64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=3 ttl=239 time=40.7 ms
64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=4 ttl=239 time=41.2 ms
--- www.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 40.255/40.818/41.221/0.391 ms
The most important part here is 4 packets transmitted, 4 received, if it doesn’t say and it just hangs its ok , just press control + c.
Now try
ping -c 4 209.85.229.99
Now this time hopefully it will say 4 packets transmitted, 4 received.
Basically the problem you have is that your webbook is not reversing the dns of the websites your trying to visit.
One solution to fix this is to go to your terminal and type
sudo gedit /etc/resolv.conf
you will need to type your password then the file should open for editing.
Add the following two lines to the file.
nameserver 208.67.222.222
nameserver 208.67.220.220
Then save and close the window, now reboot your machine and hopefully all will be ok.
If you have a computer that can connect to the internet, you may wish to visit https://www.opendns.com/start/device/ubuntu for an alternative way to set up the above.
February 10th, 2010 on 5:14 am
Thanks, this helped!