Router Independent Multidomains DyNS | dnsExit Dynamic DNS (DDNS) IP Updater
Requirement: perl and lynx
All programs and installer: getip.tar.gz (updated
7th Oct 04)
Command-line version download: getip (updated
7th Oct 04)
Daemon version download: getipd (daemon), gipd
(SysV startup) (updated 23rd Aug 04)
For manual installation:
getipd
daemon instructions
getip command-line instructions
* Updated : 7th Oct 04 *
I finally have some time to update the command-line getip to do multiple domains updating. Please obtain the latest getip from above.
* Updated : 22nd Jun 04 *
I have included an installation script for the programs. Please follow the below instructions:
Installation Instructions (to be executed as root user):
1. Download and unpack getip.tar.gz (do a "tar zxvpf getip.tar.gz")
2. Change Directory into the ip_update directory ("cd ip_update")
3. Make install script executable ("chmod 755 install")
4. Edit and update (as plain text) getip and getipd with your DDNS account info. See point #4 getipd installation
5. Run install script ("./install")
6. Restart gipd daemon service ("service gipd restart")
Enjoy!
For users who wish to customise their installations, please read through the instructions below.
* Updated : 21th Jun 04 *
It has been brought to my attention that the external IP checker is not working. I have just updated the getip program and getipd daemon to grab external IP from another IP return service. Sorry for all the inconvenience caused. See below for updated files:
Installation and usage of getipd daemon (for most Redhat/Fedora boxes):
If you have root access, you can run getipd daemon as a system daemon by following the below steps
1. Shell into your box as root. Download and save getipd in the "/usr/local/bin" subdirectory on your linux box
3. "cd /usr/local/bin" and "chmod 755 getipd" to make getipd executable
4. Edit (as plain text) /usr/local/bin/getipd to update your DDNS service (DyNS or dnsExit) , username, password, hostname(s), script_dir and update_freq.
* note that the script directory in this case should be set to : my $script_dir="/usr/local/bin/";
5. Download and save gipd daemon startup script in the "/etc/init.d" directory. "chmod 755 gipd"
6. Add gipd as a system service by "chkconfig --add gipd"
* note that I have configured gipd script to run on init levels 3,4 and 5
7. Now you can start, stop, restart or check the status of your gipd service by issuing the below commands:
service gipd start
service gipd stop
service gipd restart
service gipd status
Note: These programs are provided free for your own uses and convenience. I am not responsible for any system failure and loss of data resulting from their use nor do I guarantee that they'll work on your systems.
Installation and usage of command-line getip program:
1. Open a shell terminal and "mkdir ~/bin" to create a ./bin subdirectory in your home directory
2. Save getip in the subdirectory you just created
3. "cd ~/bin" and "chmod 755 getip" to make getip executable
4. Edit (as plain text) getip to edit your DDNS service (DyNS or dnsExit) , username, password and hostname(s) (multiple domains to be separated by ",")
5. Run the script "perl getip" to update your DDNS account
You can run the
script as a cron job to update your DDNS account automatically say every half
hour or so.
Please read through the script for more information.
Some getip parameters you can use are:
1. "perl getip checkip" (print on screen your current router external IP, no DDNS update performed)
2. "perl getip force" (force DDNS update)
Hope these are useful to you! I can be reached here if you have any comments for me.
Note: These programs are provided free for your own uses and convenience. I am not responsible for any system failure and loss of data resulting from their use nor do I guarantee that they'll work on your systems.
regards,
Cray