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: 208.67.220.200 & 208.67.222.222

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 208.67.222.222, 208.67.220.220;


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 https://www.opendns.com/account/ddns_files/inadyn.source.v1.99.zip
2. unzip -a inadyn.source.v1.99.zip
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:
answers.launchpad.net
ubuntuforums.com
ubuntu.wordpress.com ( referred to for the local dns entry)

No comments:

Post a Comment

Follow this blog !!!