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 dual booted machine windows 7 with ubuntu 12.04. I dont have direct internet access in ubuntu on wired network although direct connection works in windows7.

I have to connect through a proxy on ubuntu, which works fine. This is not a ubuntu version related problem as i have been getting it from ubuntu 11.04.

I want to know what difference is there in ubuntu and windows 7 which creates such results and how to fix it?


In ubuntu i get the error on direct connection(google-chrome-stable) -

The server at can't be found, because the DNS lookup failed.

share|improve this question
up vote 2 down vote accepted

The resolv.conf in Ubuntu was probably changed for proxy use and was not changed back for normal use for some reason. Deleting the old resolv.conf may help. You can make a backup copy of the file and delete the original with this single command:

sudo mv /etc/resolv.conf /etc/backup.resolv.conf

A new resolv.conf will be generated as and when needed.


  1. Boot into Ubuntu
  2. disconnect from the Internet via proxy, if connected.
  3. Open a terminal by pressing Ctrl+Alt+T and enter the command:

    sudo mv /etc/resolv.conf /etc/backup.resolv.conf

  4. Connect to the Internet with the Direct connection settings.

To add a permanent dns entry to resolv.conf see: How do I add a DNS server via resolv.conf?

Hope this helps

share|improve this answer

Found the problem to be resolv.conf was not getting updated bu network settings so i manually added google public dns and it works perfectly.

share|improve this answer
In Ubuntu 12.04 resolv.conf is dynamically generated. It may get over-written at some point. See how you can do it more permanently in the link in my answer. Please accept one of the answers (yours of mine) as the correct and put the green tick mark so that others can benefit from your question. – user68186 Sep 17 '12 at 16:01

Your Answer


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

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