Friday, November 6, 2009

EasyDNS How To

One of my client use EasyDNS service for Dynamic DNS.

But they do not want do it in manual.
Here is how to do it in Linux:

I used a perl module called DNS-EasyDNS from:

1. First download the latest version:

# wget

2. Uncompress the file

# tar xvf DNS-EasyDNS-0.04.tar.gz
# cd DNS-EasyDNS-0.04

You will need install libwww-perl module before install it:

# yum install perl-libwww-perl
To use SSL connection also need:
# yum install perl-Crypt-SSLeay.x86_64

3. Install it:

# perl Makefile.PL
# make
# make test
# make install

4. Create a shell

echo "-------------------------------------------" >> $LogFile
echo $(date +"%y-%m-%d %H:%M:%S") >> $LogFile
echo "--------------------------" >> $LogFile
echo "Update DNS for" >> $LogFile
/home/admin/script/easydns-simple "username" "password" >> $LogFile

5. Use crontab automatic update:

# vi crontab


0,15,30,45 * * * * /home/admin/script/

No comments:

Post a Comment