Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zircote
Created January 21, 2013 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zircote/4585615 to your computer and use it in GitHub Desktop.
Save zircote/4585615 to your computer and use it in GitHub Desktop.
Automated DNS updates using Route53
#!/bin/sh
ZONE="my-tld.com"
RESOURCE="some-host"
INTERFACE="eth0"
ADDR=$(ifconfig $INTERFACE | grep "inet addr" | awk -F: '{print $2}' | awk '{print$1}')
cli53 rrcreate $ZONE $RESOURCE A $ADDR -x 3600 -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment