View Full Version : How To Use Google Public DNS or OpenDNS in Ubuntu

December 14th, 2009, 10:53 PM
the reasons to switch to other DNS servers for performance, privacy and censorship. Most of the people using OpenDNS as the first alternative, But Now Google Public DNS is available and the performance is much better.

Select System-->Preferences-->Network Connections

file:///tmp/moz-screenshot.jpgSelect the type of connection you have

click on ‘IPv4 Settings’ tab. and select 'Automatic (DHCP) address only'

Put these nameserver addresses as your ‘DNS Servers’:,

Click ‘OK’ and reboot your machine.

December 15th, 2009, 02:54 AM
Thanks to FOSS

but i think i should backup my DNS server addresses first i run the following command to do it :

sudo cat /etc/resolv.conf >> /home/zero/Desktop/DNS_Backup

Change zero to your username.

the above command will save a file in your desktop that conatin the address of your DNS server, it's output should look like this:

# Generated by NetworkManager

December 15th, 2009, 12:27 PM
yes mr zero you are right i have to do backu

thank you for notice