The challenge: keeping my IP address up to date
I recently wanted to find a way to keep dynamic DNS updated for a smart DNS service at home (to keep MOG, Pandora and LastFM running without using the hassle of a VPN). It turns out my home DSL router’s IP address changes all the time and I was updating my DNS mapping service multiple times per day.
It was a bit of a hunt to find a suitable dynamic DNS solution as dyndys.org went (expensive) paid at $25/year recently. After looking at some of the competitors, I finally chose DNSmadeeasy to avoid creating managing more logins. We already have work accounts and DNSmadeeasy includes dynamic DNS with every name in your account (fabulous value if you need a lot of dynamic DNS). If you are looking for free dynamic DNS, the amusingly named http://afraid.org appears to be the last good free solution operating.
While on Afraid.org’s site, I found a nice quick Bash script which could be customised for DNSmadeasy. Unfortunately I couldn’t get Curl to work well in bash, with DNSmadeeasy’s update command failing (personal data removed) even with -d data variables or with a simple http command: