AWS

Download 604
Last updated Dec 1, 2026

aws-route53-resource-record-sets

Retrieves Route53 resource record sets for hosted zones.

Syntax

aws-route53-resource-record-sets [profile=STRING] [hosted-zone-id=STRING]

Options

profile=STRING
Optional option. The identifier of AWS connect profile When omitted, every AWS connect profile the user may use is queried.
hosted-zone-id=STRING
Optional option. Target hosted zone ID; all hosted zones if omitted

Output fields

FieldTypeNameDescription
aws_profilestringConnect profileAWS connect profile identifier
hosted_zone_idstringHosted zone ID
namestringRecord nameDNS record name
typestringRecord typee.g. A, CNAME, MX
ttlintTTLtime to live in seconds
resource_recordslistResource recordsrecord values
is_aliasboolIs aliastrue = alias record
alias_targetstringAlias targetalias target DNS name

Error codes

Parse errors

Error messageCauseResolution
aws-profile-not-foundNo AWS connect profile matches the name given in the profile option.Check the name on Settings > Connect Profiles and specify it again.
no-permissionThe account running the query is not granted the connect profile.Ask an administrator to grant the connect profile.
use-one-aws-profileMore than one connect profile was given in the profile option.Specify a single connect profile.

Description

Retrieves Route53 resource record sets for hosted zones.

The following AWS IAM permissions must be allowed to use this command.

  • route53:ListHostedZones
  • route53:ListResourceRecordSets
Note
This command is available from AWS app 2.0.2612.0.

Examples

Example: List Route53 Resource Record Sets

Situation: A periodic review or an incident investigation needs the result of list route53 resource record sets.

aws-route53-resource-record-sets

Expected result:

aws_profilehosted_zone_idnametype
aws-prodexample-id-0123example-nameA

Interpretation: One record is one queried item. Use aws_profile and region to tell which account and region it came from, then narrow the columns with fields and either export the result or use it as the lookup stage of a detection rule.

Example: Narrowing to one account and region

Situation: Limit the scope when several connect profiles and regions exist.

aws-route53-resource-record-sets profile=aws-prod
| limit 100

Interpretation: Narrowing the scope cuts both the number of AWS API calls and the response time. Scope every scheduled query this way.