Monday, June 02, 2008

inadyn

https://help.ubuntu.com/community/DynamicDNS
Install the inadyn package using Synaptic Package manager, then:

The following will allow your Ubuntu Linux machine to be accessible anywhere that you are given an externally-accessible IP address. This includes most ISPs but excludes many office LANs.

First edit the file /etc/inadyn.conf:

gksudo gedit /etc/inadyn.conf

It should contain something like to the following:

--username myusername
--password mypassword
--update_period 60000
--alias myhost.dyndns.org
--background

Now test that it works by typing

sudo /usr/sbin/inadyn

Next, add inadyn to your 'crontab':

export EDITOR=gedit
sudo crontab -e

Edit the file to add the following additional line:

@reboot /usr/sbin/inadyn

Then save and exit the editor. Verify using

sudo crontab -l

When you reboot, you should see indyn listed when you type

ps -A | grep inadyn

You should be able to log in to your Dynamic DNS provider's website and verify that the DNS entry is being updated. Certainly this is possible with www.dyndns.org, in any case. Alternatively you can type your hostname into a service like [WWW] http://www.dnsstuff.com/.
===========//////

Through DynDns website can be generated the inadyn.conf file which is something like this:

# Basic configuration file for inadyn
#
# /etc/inadyn.conf

update_period_sec 600 # Check for a new IP every 600 seconds

username "mylogin"
password "mypassword"

dyndns_system dyndns@dyndns.org
alias test.homeip.net