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:
http://search.cpan.org/~gbrock/DNS-EasyDNS/
1. First download the latest version:
# wget http://search.cpan.org/CPAN/authors/id/G/GB/GBROCK/DNS-EasyDNS-0.04.tar.gz
2. Uncompress the file
# tar xvf DNS-EasyDNS-0.04.tar.gz
# cd DNS-EasyDNS-0.04You 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
#!/bin/bash
LogFile=/home/admin/script/dns_update.log
echo "-------------------------------------------" >> $LogFile
echo $(date +"%y-%m-%d %H:%M:%S") >> $LogFile
echo "--------------------------" >> $LogFile
echo "Update DNS for lambertdatabasetest.com" >> $LogFile
/home/admin/script/easydns-simple "username" "password" lambertdatabasetest.com >> $LogFile
5. Use crontab automatic update:
# vi crontab
Add:
0,15,30,45 * * * * /home/admin/script/dns_update.sh
No comments:
Post a Comment