-1

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?

EDIT

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

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

Tachyons
  • 17,455
shubham
  • 661

2 Answers2

2

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.

Steps:

  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

user68186
  • 37,461
0

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.

shubham
  • 661