Internet not working in Ubuntu 14.04
Solution 1
There are many reasons why you might get such problems. You are connected to router but not the internet. I will suggest two solutions.
If you have nscd installed then try this
sudo /etc/init.d/nscd restart
If not then try to release and renew the IP
sudo dhclient -r eth0
sudo dhclient eth0
Solution 2
Your internet is working as show by successful pings to 4.2.2.2.
Whats not working is you DNS translations from google.com to its IP.
You're setting your DNS servers to 64.59.144.93 and 64.59.150.139 are you sure that's correct?
Try
nslookup google.com 64.59.144.93
and
nslookup google.com 64.59.150.139
if they don't respond try using public dns servers like
nslookup google.com 8.8.8.8
or 8.8.4.4 or 4.2.2.2.
Related videos on Youtube
stranger_anon
Updated on September 18, 2022Comments
-
stranger_anon almost 2 years
I'm using Windows 8.1 with Ubuntu 14.04 with uefi dual boot. I had to force shut down Ubuntu after it hanged. Since then internet is not working in ubuntu while everything is fine in windows. Attaching the photos of outputs of some commands I ran to check things.
Looks like my router is connected to the laptop just fine. I can't understand where the problem lies since Windows isn't having any.
Thanks in advance for your help.
Edit: some more outputs
-
OdinRW about 10 yearsDo you use DNS cache (nscd)?
-
derHugo over 6 yearsPlease remove all those screenshots and rather add the code as text to your question and format it as code block!
-
stranger_anon over 6 years@derHugo I would have done that. However, since the internet was not working, I had to type on my phone. Don't have access to these outputs any more. Sorry for the inconvenience.
-
-
stranger_anon about 10 yearsYou are definitely on to something! But the DNS seem fine. Nslookup returns a different list of IP addresses for both dns. Ping gives 0 packet loss for every IP on that list. Even entering them directly to the browser address bar starts Google. However pinging Google still doesn't work.
-
meccooll about 10 yearsShow your
nslookup ubuntu.com
,cat /etc/resolv.conf
, andcat /etc/network/interfaces
-
stranger_anon about 10 yearsAdded an edit!!
-
meccooll about 10 yearsBut he IS connected to the internet
-
meccooll about 10 yearsAnd he's connected through eth0 NOT wireless
-
OdinRW about 10 yearsHe is connected to the internet true. but if there is IP conflict in the internal network (which we have no information about it) then it might cause problem. He can also use arp-scan to give more info but atm let's try to narrow it
-
OdinRW about 10 yearsTrue story :p I have wireless so was trying the command here before posting it :)
-
meccooll about 10 yearsDo
dig ubuntu.com
So it'd use whatever DNS it thinks it's suppose to. i'm speculating that it'd try 127.0.0.1 instead of 64.59.144.93 -
stranger_anon about 10 yearsReleasing and renewing the IP worked like a charm. Didn't have to change the DNS. Thank you
-
meccooll about 10 yearsI have a feeling you might be back ;)
-
OdinRW about 10 yearsGlad it worked ;)