DynDNS replacement via AWS route 53

| No Comments | No TrackBacks

This little script was born out of a desire to get rid of DynDNS and similar services. There are several scripts around that do the job, but most of them are pretty complicated because they try to do the Amazon AWS calls manually.

This script requires a fully configured installation AWS cli which is used to do the update.

What it does:

  1. Use curl to get the local IP address from a router status page
  2. Check whether the internally reported IP matches the one known to a public DNS server
  3. If it doesn’t match, create an update record to update a hosted zone file on AWS Route 53

This can be run from a cron job every couple of minutes to ensure the ip is always current.

Currently this is tuned to get the IP from a German Telekom Router, but the curl/grep expression should be easily adapted to use a different source.

I hope this is useful to other trying to achieve the same thing. You can find the code on GitHub

No TrackBacks

TrackBack URL: http://thomasjaehnel.com/cgi-bin/mt/mt-tb.cgi/81

Leave a comment


Click here to add a video comment!

About this Entry

This page contains a single entry by Thomas Jaehnel published on August 27, 2014 8:22 PM.

Short intro to grails database migration was the previous entry in this blog.

Apple VAT refund for companies is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Creative Commons License
This blog is licensed under a Creative Commons License.
homemade code GmbH
powered by homemade code GmbH ~ the application security experts!