Home > Software engineering >  AWS Route 53 list records by creation date
AWS Route 53 list records by creation date

Time:12-24

I'd like to get a list of all DNS records in my hosted zone that have been created recently, for example in the last 24 hours. Is this possible?

CodePudding user response:

Yes , it is possible. make sure you have AWS CLI installed and configured on your local machine.

  1. Run below command to list down all hosted zones in your AWS account

    aws route53 list-hosted-zones

  2. take the ID of the hosted zone that you want find the Records with start time filter.

    aws route53 list-resource-record-sets --hosted-zone-id YOUR_HOSTED_ZONE_ID --start-time "24 hours ago" --end-time "now"

CodePudding user response:

To get the creation date of Route 53 records, you can get it from CloudTrail if you have enabled the trail before the zone is created.

  • Related