Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 a wireless router that assigns IPs using DHCP. My laptop (Acer Aspire 1 110L running Ubuntu 10.10) connects to the wireless network, but DNS is not working. I've tried to trouble shoot the problem following various tutorials on ubuntu help, but I'm stuck.

(My laptop works fine with other wireless networks, and other computers can connect to the Internet using the router in question. My laptop worked fine with this router until a few weeks ago. Unfortunately I don't know what changed to cause the problem. I tried booting into various older kernels that are still on the system, but that didn't fix the problem.)

I can connect to the wireless network. The network manager applet indicates the connection is successful.

ifconfig indicates that my computer is assigned an IP address (

/etc/resolv.conf contains one line:


netstat -nr indicates that I have a default route to

I can ping, and my laptop (i.e., localhost,, I can't ping other names (e.g., or addresses (e.g.,

What should I do next to try to fix this problem?


share|improve this question
is nslookup working? – geoh May 13 '12 at 17:40

/etc/resolv.conf contains your DNS listings. is obviously the router in question. You need to manually provide the nameserver(s) provided to you by your isp. You can usually get this information under the router/status page. In your case the router is not a nameserver and therefore will not resolve DNS.

Network-Manager will overwrite the /etc/resolv.conf to accomadate dhcp configured connections. Playing around with mixed static and dhcp connections can sometimes trigger this file to be overwritten. You could also try letting network-manager have another shot by manually restarting networking.

$ sudo /etc/init.d/networking restart 

We can also try to resolve the problem directly utilizing dhclient.

$ sudo dhclient -r
$ sudo dhclient 
share|improve this answer
I love you. Let me double your points. – WernerCD Jun 26 '12 at 16:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.