Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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