Friday, March 04, 2005

DynDNS update script

I caved in and wrote my own perl script to update DynDNS.org's DNS servers. All I needed was a simple lightweight tool that I could use to automate my IP updates. But nope... I couldn't find any such tool in their list of update clients. So I wrote my own. Feel free to use it if you want. This was written in perl 5.8.6 and requires the LWP and Switch modules, so you'll probably need a decently recent version of perl to run this.

4 comments:

Anonymous said...

Thank you very much.
It's exactly the script that I wanted.

Derek L. said...

Glad you liked it!

Anonymous said...

Wish it worked:

main::age() called too early to check prototype at ./update_dyndns.pl line 106.
readline() on closed filehandle SAVE_FILE at ./update_dyndns.pl line 142.
readline() on closed filehandle SAVE_FILE at ./update_dyndns.pl line 143.
Use of uninitialized value in scalar chomp at ./update_dyndns.pl line 145.
Use of uninitialized value in scalar chomp at ./update_dyndns.pl line 146.
Use of uninitialized value in subtraction (-) at ./update_dyndns.pl line 229.
Use of uninitialized value in string ne at ./update_dyndns.pl line 110.
The update was successful, and the hostname is now updated. IP = XX.XXX.XX.XXX

Anonymous said...

Well, duh, it does work as is shown in the last line. However, you may want to investigate those warning messages.