Personal tools
You are here: Home Solution Areas Desktop Web Browsers Adding OpenDNS to your list of nameserver under ubuntu

Adding OpenDNS to your list of nameserver under ubuntu

by abdullah last modified Sep 05, 2008 09:16 AM

Sometimes your main DNS server screws up. Sometimes they want to block you from certain places. No matter what the reason, here's how to circumvent the problem altogether by using OpenDNS with your ubuntu box.

Using sudo edit the file /etc/dhcp3/dhclient.conf.

sudo vim /etc/dhcp3/dhclient.conf

Add OpenDNS DNS server ip by adding the following line:

append domain-name-servers 208.67.222.222,208.67.220.220;

Save and restart your network. If it works you should have in your /etc/resolve.conf the following lines:

nameserver 208.67.222.222
nameserver 208.67.220.220

Done.

Document Actions