Skip to content

Instantly share code, notes, and snippets.

@liamsomerville
Last active December 18, 2018 12:47
Show Gist options
  • Save liamsomerville/e5155357ed7015bcb4103cd8fe14ac49 to your computer and use it in GitHub Desktop.
Save liamsomerville/e5155357ed7015bcb4103cd8fe14ac49 to your computer and use it in GitHub Desktop.
List and Tidy up AWS Route53 hosted zones
aws route53 list-hosted-zones |grep 'Name'|cut -c 21- |sed 's/[",]//g' |sed 's/.$//'
#list the zones and get their hosted-zone id's
aws route53 list-hosted-zones
#get the dns records for a zone
aws route53 list-resource-record-sets --hosted-zone-id <ZONE-ID> | grep Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment