Works well with bash.
This script follows the LSBInitScripts.
You can update your IP address every few minutes using cron, or update it at boot time using init.
Make your host information file first.
init:
# Update IP at runlevel 0 1 2 3 4 5 6 (while booting, rebooting, shutdown, etc.)
$ update-rc.d update-ddns start 90 2 3 4 5 . stop 90 0 1 6 .cron:
$ crontab -e
# Update IP for every 5 mins
*/5 * * * * /etc/init.d/update-ddns start{
"amount": 3,
"host1":
{
"hostname": "mysubdomain.mydomain",
"username": "iVETU0O6r0CTNYdX",
"password": "XsaMlfmzSU1dRrMg"
},
"host2":
{
"hostname": "mysubdomain2.mydomain",
"username": "sUNeCRROUlnYbyDJ",
"password": "afM95PIqWOGSNHHw"
},
"host3":
{
"hostname": "mysubdomain3.mydomain",
"username": "tNCcjHOKHyVnHTg0",
"password": "GiBeuNrU92JXLd1w"
}
}