View Full Version : [ubuntu] DNS issues

November 17th, 2009, 01:13 AM

I'm having problems with dns in Ubuntu.
My router is correctly configured and has a connection to the internet. DNS is set to use my ISP's.

The diagnostics page in the router is correctly looking up IP addresses, which I can then ping.
However if I try to ping the name of the site from the command prompt, it cannot find it, nor can I access sites by name in Firefox.

I have tried rebooting my router, and doing

sudo /etc/init.d/networking restartbut nothing has helped.

Does anyone have any ideas, or some further diagnostics I could do?


November 17th, 2009, 01:19 AM
can you ping

please post the output of:

sudo cat /etc/resolv.conf

November 17th, 2009, 01:31 AM
Thanks doas777 you have just solved my problem!

The output of
sudo cat /etc/resolv.confwas nameserver
which needed to be

I changed it accordingly and I'm back online, thanks.
It is interesting that the router has one setting and Ubuntu has another in a text file.

November 17th, 2009, 01:31 AM
Which release are you running?
Does machine get IP address via DHCP?

Never mind... 'ya found it!