Created
January 21, 2013 12:07
-
-
Save zircote/4585615 to your computer and use it in GitHub Desktop.
Automated DNS updates using Route53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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