How to Export a Zone File in AWS CloudShell

0

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,

已提問 3 個月前檢視次數 766 次
1 個回答
1
已接受的答案

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 > mydomain.zone.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 mydomain.zone.json.

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

profile picture
專家
已回答 3 個月前
profile pictureAWS
專家
已審閱 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南