Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have no wired connection internet access on ubuntu 14.04 even though it is detected, my computer connected to the same router has.

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 4c:72:b9:7e:b5:61  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::4e72:b9ff:fe7e:b561/64 Scope:Link
          RX packets:93 errors:0 dropped:0 overruns:0 frame:0
          TX packets:705 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18292 (18.2 KB)  TX bytes:76277 (76.2 KB)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:701 errors:0 dropped:0 overruns:0 frame:0
          TX packets:701 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:54442 (54.4 KB)  TX bytes:54442 (54.4 KB)

wlan0     Link encap:Ethernet  HWaddr 08:3e:8e:5f:56:1e  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
share|improve this question
what happens if you ping your router ping -c3 Or Google's DNS ping -c3 – MariusMatutiae May 19 '14 at 16:21
3 packets sent, 3 received – user324935 May 19 '14 at 16:32
up vote 9 down vote accepted

Good. Then you do not have DNS nameservers. Add these two lines to /etc/resolv.conf:


and it should work.

share|improve this answer
That did work (it couldnt load videos on youtube) but after reboot is reset to: nameserver nameserver – user324935 May 19 '14 at 16:55
@user324935 It should work then, doesn't it? – MariusMatutiae May 19 '14 at 17:12
yes it is working properly now – user324935 May 19 '14 at 17:37
I used the IPs of opendns. But yes, your idea works! Thanks! – GTodorov Jul 31 '15 at 4:44

protected by Community Feb 19 '15 at 15:27

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.