PDA

View Full Version : Perl Sscript to update Dynamic IP's with Rimu DNS


valor
07-11-2005, 09:53 PM
Hi All!

I suppouse everyone knows rimuhosting offer dynamic IP's if your domains are at DNS control panel.

I've created a little script in perl which will request the ip update to rimuhosting and parse the result. If result is ok, script silently exit with status 0.
If result is ERROR, then script send an e-mail to a configurable address warning of an IP not updated.

Notice that if you send an update and ip was already updated, this returns an OK result therefore you will not receive warnings for that.

Of course you can add lot of features to this script, but first version met my requirments and it was developed in 15 minutes :-).

TO_DO:
- send the ip instead of let rimuhosting panel learn the IP.
- let user configure to send email alarm or not
- let user configure to send email also on ok results.
- parse different ERROR & OK results.

The script is attached to this message, remember to remove .txt extension and chmod +x the script.