How to export Amazon Route 53 DNS Zone

To export DNS Records for a domain, you can use AWS CLI.

First, you need to make an Access key to use with AWS CLI. To configure AWS CLI, run the command

You need to enter “Access Key ID:” and “Secret Access Key”. You can generate these in the AWS console by clicking on your name in the right top corner. Then from the drop-down menu, select “Security Credentials”. This will take you to page

In the above URL us-east-1, can be changed with any region code.

AWS Security Credentials

On this page, expand “Access keys (access key ID and secret access key)”, then to create Access Key, click on the “Create New Access Key” button.

To list all DNS Zones, use the command

From the result, you need to find the numeric id of the hosted zone.


In the above example, the zone id is Z049372530XJK28PE5FZG

To list all DNS records for the zone, use the command

You can use jq command to list DNS records in non json LogFormat

In the above command, Z049372530XJK28PE5FZG is the zone id for the domain. Replace it with your DNS zone id.

Back to Route 53

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *