Very Simple Dynamic DNS Client
I have recently found a need for a Dynamic DNS client for my desktop. This, based on a script from Jeremy Zawodny, is what I’ve come up with:
This is, of course, a bash script - meaning it is for *nix systems. It’s supposed to be run via a cron job (mine is set to run every 5 minutes). The script is very self-explanatory.
Right now, it updates FreeDNS and a Twitter account with my latest IP.
One note: if you use this, make sure that
~/.last_ip is not empty, even the first time you run the script. This will cause the script to fail on line 12 - bash ends up trying to run something like
if [ != 126.96.36.199 ], which is obviously not correct.