How to Export a Zone File in AWS CloudShell


Hello, I was wondering if anyone knows the command to export the zone file for a domain in my AWS Route 53 using the CloudShell shown below in the screenshot when I login via the web browser. Enter image description here Much appreciated,

asked 25 days ago115 views
1 Answer
Accepted Answer

Here is a basic command structure you can use in AWS CloudShell:

aws route53 list-resource-record-sets --hosted-zone-id ZONE_ID --output json >

You'll need to replace ZONE_ID with your actual hosted zone ID. This command will export the records into a JSON file named

If this has answered your question or was helpful, accepting the answer would be greatly appreciated. Thank you!

profile picture
answered 25 days ago
profile pictureAWS
reviewed 25 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions