There was an error in this gadget

Sunday, March 22, 2009

OpenDNS in Ubuntu instead of local DNS along with automatic updater (inadyn) for dynamic IPs

Basically you need to change your network settings so that your DNS nameservers always point to the openDNS servers rather than those provided by your local ISP.

openDns nameservers are: &

For the case of a DHCP client that is mobile or where you do not have control over the DHCP service configuration, the procedure is:

sudo gedit /etc/dhcp3/dhclient.conf

Add a prepend line or change the existing one to read:

prepend domain-name-servers,;

Restart networking with

sudo /etc/init.d/networking restart

Will be writing down how to use a local dns cache soon using dnsmasq


Now getting to the part where we need to dynamically update our openDns network if our IP is non-static. The solution for this is

1. wget
2. unzip -a
3. cd inadyn.source.v1.99/
4. sudo apt-get install build-essential
5. sudo apt-get install libcurl4-openssl-dev
6. make
7. gedit inadyn.conf
here put your information (username, password, alias). Make sure on the OpenDNS settings you enable "Set Up a Dynamic IP".
8. sudo cp inadyn.conf /etc/
9. /bin/linux/inadyn

^^^Steps taken from this link as well:

CREDITS GOTO: ( referred to for the local dns entry)

No comments:

Post a Comment

Follow this blog !!!