Last active
December 18, 2018 12:47
-
-
Save liamsomerville/e5155357ed7015bcb4103cd8fe14ac49 to your computer and use it in GitHub Desktop.
List and Tidy up AWS Route53 hosted zones
This file contains 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
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