Skip to content

Instantly share code, notes, and snippets.

@jacksoncage
Forked from zircote/r53-dyn-dns.sh
Created May 3, 2013 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacksoncage/5508114 to your computer and use it in GitHub Desktop.
Save jacksoncage/5508114 to your computer and use it in GitHub Desktop.
#!/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