Monday, August 20, 2012

"Replacing" DynDNS with Amazon Route 53

DynDNS used to have a free tier, which allowed a machine behind a dynamic IP to periodically update a DNS record with its current IP. (Some home routers bundled the functionality in, too.) DynDNS' free tier appears to have gone away.

If your home router is a regular linux box, though, you can easily use Amazon Route 53 to achieve the same thing. Route 53 isn't free, but for unpopular domains most of the cost is in the fixed per-zone cost (and subdomains are free anyway).

So, you can dedicate a subdomain of one of your existing domains for the purpose of keeping track of your home machine, essentially free.

I wrote a little script to do this: It's still pretty rough, but it appears to work.

It is mostly self-contained, but requires libxml2 bindings for python. It takes all arguments on the command line. It could conceivably get the information other ways.

[Update, 2013-01-26: It no longer requires libxml2. I've also added a wrapper script to retrieve the machine's public IP address, if --ip=auto doesn't work (if the machine is behind NAT, for instance). It uses DynDNS's little IP-reporter server, ironically...]

(I could have used boto to do this much more concisely, but I was interested in doing the authentication bits myself. My official justification is that I was trying to keep dependencies minimal.)

Note: If you're running pfsense on your home router, you can use it (as of 2.1-RELEASE) to set your DNS name in Route53 as well. (It is not listed on, but it is an option.)


  1. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it... Java Training in Chennai | Blue prism Training in Chennai

  2. We require all the more such articles that we can read with such excitement.

  3. Hello, I read your blog occasionally, and I own a similar one, and I was just wondering if you get a lot of spam remarks? If so how do you stop it, any plugin or anything you can advise? I get so much lately it’s driving me insane, so any assistance is very much appreciated.
    Data science Course Training in Chennai |Best Data Science Training Institute in Chennai
    RPA Course Training in Chennai |Best RPA Training Institute in Chennai
    AWS Course Training in Chennai |Best AWS Training Institute in Chennai
    Devops Course Training in Chennai |Best Devops Training Institute in Chennai

  4. Thank you for excellent article.Great information for new guy like antimalware service executable