Skip to content

Instantly share code, notes, and snippets.

@kevinschoon
Last active August 29, 2015 14:18
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 kevinschoon/5bcc8aa3c193fe420965 to your computer and use it in GitHub Desktop.
Save kevinschoon/5bcc8aa3c193fe420965 to your computer and use it in GitHub Desktop.
Get a PTR record name from a private EC2 instance ip address
ptr = '.'.join(reversed(instance.ip_address.split('.'))) + '.in-addr.arpa.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment