Route 53 Record Auditor
Mindset
One-line takeaway: a DNS record set is the last hop before a user reaches
your infrastructure. Every routing-policy record that distributes traffic
without a health check is a promise to route users to a potentially dead
endpoint, and every dangling ALIAS to a deleted AWS resource is either an
immediate outage or a subdomain-takeover vector.
Route 53 record auditing is not just "does the record resolve." It is:
- Health-check coverage — failover routing without a health check on the
PRIMARY record means Route 53 can never detect failure, so it serves the
dead primary forever. This is the single most dangerous Route 53
misconfiguration.
- Dangling ALIAS targets — an ALIAS to a deleted ELB, CloudFront
distribution, or S3 website bucket causes NXDOMAIN (outage) or, for S3
website and API Gateway custom domains, subdomain takeover (another
account recreates the deleted resource and intercepts traffic).
- DNSSEC — a public hosted zone without DNSSEC signing is susceptible to
cache-poisoning and DNS-spoofing attacks. A zone with signing enabled but
no DS record at the parent provides no resolver-side validation.
- Public-zone exposure — an A record to
10.50.10.20 in a public hosted
zone discloses internal network topology to anyone who queries the zone.
- TTL consistency — mismatched TTLs within a weighted record group cause
inconsistent caching behaviour across resolvers, breaking load
distribution assumptions.
Quick reference — severity thresholds
| Condition |
Verdict |
Risk |
Step |
| ALIAS to deleted S3 website / API Gateway custom domain |
DANGLING |
CRITICAL |
1a |
| ALIAS to deleted ELB / CloudFront / VPC endpoint |
DANGLING |
HIGH |
1b |
| Failover PRIMARY, no HealthCheckId |
NO_HEALTH_CHECK |
CRITICAL |
2a |
| Weighted (weight > 0), no HealthCheckId |
NO_HEALTH_CHECK |
HIGH |
2b |
| Latency routing, no HealthCheckId |
NO_HEALTH_CHECK |
HIGH |
2c |
| Geolocation routing, no HealthCheckId |
NO_HEALTH_CHECK |
MEDIUM |
2d |
| Multivalue answer, no HealthCheckId |
NO_HEALTH_CHECK |
MEDIUM |
2e |
| Public zone, DNSSEC signing disabled |
DNSSEC_GAP |
HIGH |
3a |
| Public zone, DNSSEC signed but no DS at parent |
DNSSEC_GAP |
MEDIUM |
3b |
| Private IP (RFC 1918/4193) in a public zone |
CONFIG_GAP |
HIGH |
4a |
| TTL variance > 2x within routing group |
CONFIG_GAP |
MEDIUM |
5a |
| TTL > 3600 on frequently changing records |
CONFIG_GAP |
LOW |
5b |
| All checks pass |
OK |
OK |
6 |
Pre-flight: zone and record-set metadata gate
Before evaluating individual record sets, classify the hosted zone. Zone-level
attributes short-circuit several audit dimensions — misclassifying them
produces false positives.
Pagination note: aws route53 list-resource-record-sets returns up to
300 record sets per call. Use --start-record-name and --start-record-type
from the prior NextRecordName to page through all records. Iterating only
the first page silently skips the tail of the zone — these are the records
most likely to be stale or unmanaged.
| Attribute |
Value |
Effect on audit |
Config.PrivateZone: true |
Private hosted zone. DNSSEC is N/A (private zones are not publicly resolvable). Public-zone exposure is N/A. Still audit health checks and dangling ALIAS. |
|
Config.PrivateZone: false |
Public hosted zone. Full audit — DNSSEC, exposure, health checks, dangling, TTL. |
|
DnssecSigning absent or key-signing key inactive |
DNSSEC not enabled. Jump to Step 3a if public zone. |
|
DnssecSigning present, KSK active |
DNSSEC signing is on. Check for DS record at parent (Step 3b). |
|
If the record-set JSON is malformed (missing required fields Name,
Type, TTL), output:
RECORD: <name>
VERDICT: ERROR
REASON: Record set is malformed or missing required fields — cannot classify.
REMEDIATION: Retrieve the canonical record set with
aws route53 list-resource-record-sets --hosted-zone-id <id> --output json
and re-audit.
Process — Classification logic (apply in order, aggregate worst)
Step 0: Expert knowledge — non-obvious Route 53 behaviours
Moved verbatim → references/advanced-patterns.md § "Step 0: Expert knowledge — non-obvious Route 53 behaviours".
Load when: classifying any record — these non-obvious behaviours change verdicts if ignored
Step 1: Dangling ALIAS target detection (highest priority — outage or takeover)
For each record with AliasTarget, verify the target resource exists. The
detection method depends on the target type:
ALIAS to S3 website endpoint (*.s3-website-*.amazonaws.com): if the
bucket has been deleted or website hosting disabled, the DNS name
returns NXDOMAIN. Another AWS account can recreate a bucket with the same
name and re-enable website hosting — subdomain takeover. This is
DANGLING, RISK: CRITICAL (Step 1a).
ALIAS to API Gateway custom domain (*.execute-api.*.amazonaws.com):
if the custom domain or API mapping has been deleted, the endpoint
returns NXDOMAIN. Another account can claim the same custom domain in
some configurations. DANGLING, RISK: CRITICAL (Step 1a).
ALIAS to ELB / ALB / NLB (*.elb.amazonaws.com): if the load
balancer has been deleted, the DNS name does not resolve. ELB DNS names
include a random suffix, making direct takeover unlikely, but the record
causes NXDOMAIN (immediate outage). DANGLING, RISK: HIGH (Step 1b).
ALIAS to CloudFront (*.cloudfront.net): if the distribution has
been deleted, the DNS name returns NXDOMAIN. Distribution IDs are
globally unique, so takeover is not possible. DANGLING, RISK: HIGH
(Step 1b).
ALIAS to VPC interface endpoint (*.execute-api.*.amazonaws.com or
service-specific): if the endpoint has been deleted, the private DNS
name does not resolve. DANGLING, RISK: HIGH (Step 1b).
Detection signal: AliasTarget.DNSName that does not resolve when queried
(or the EvaluateTargetHealth: true flag combined with an unreachable
target). For offline audits, the operator provides the resolution status.
Step 2: Health check on routing-policy records
For records with a routing policy (Weighted, Failover, Latency,
GeoLocation, MultiValueAnswer), check for HealthCheckId:
Failover PRIMARY, no HealthCheckId → NO_HEALTH_CHECK, RISK:
CRITICAL (Step 2a). Without a health check, Route 53 has no signal
to fail over — the PRIMARY is always considered healthy. A failover
configuration with a health-check-less PRIMARY is functionally
indistinguishable from no failover at all.
Weighted, Weight > 0, no HealthCheckId → NO_HEALTH_CHECK,
RISK: HIGH (Step 2b). Route 53 distributes the weight proportionally
even if the endpoint is dead — dead endpoints receive their full share
of traffic.
Latency routing, no HealthCheckId → NO_HEALTH_CHECK, RISK:
HIGH (Step 2c). Users are routed to the lowest-latency region even
if that region's endpoint is down.
Geolocation routing, no HealthCheckId → NO_HEALTH_CHECK,
RISK: MEDIUM (Step 2d). Users from a mapped region are always routed
to that region's endpoint.
Multivalue answer, no HealthCheckId → NO_HEALTH_CHECK,
RISK: MEDIUM (Step 2e). Route 53 randomises across all records,
including dead ones (reduced but not eliminated traffic to dead IPs).
Weighted, Weight: 0, no HealthCheckId → no finding. Weight 0
is a deliberate drain — no traffic reaches this record.
Failover SECONDARY, no HealthCheckId → no finding (informational
note only). The secondary is served when the primary fails. A health
check on SECONDARY is recommended for fail-closed behaviour but not
required for basic failover.
Step 3: DNSSEC signing gap (public hosted zones only)
Evaluate DNSSEC only for public hosted zones (Config.PrivateZone: false):
No active key-signing key (KSK) or zone-signing key (ZSK) →
DNSSEC_GAP, RISK: HIGH (Step 3a). The zone is susceptible to
cache-poisoning. Enable DNSSEC signing, create a KSK, and publish the DS
record at the parent zone (registrar/TLD).
KSK active but no DS record at the parent zone → DNSSEC_GAP,
RISK: MEDIUM (Step 3b). Route 53 signs the zone, but resolvers cannot
validate signatures without the DS chain. Verify the DS record is
published by querying the parent zone or checking the registrar.
Private hosted zone → skip DNSSEC evaluation entirely. DNSSEC is
irrelevant for private DNS — private zones are resolved only within
associated VPCs, not by public recursive resolvers.
Step 4: Public hosted-zone exposure
For records in public hosted zones, check for private/internal targets:
A/AAAA record pointing to RFC 1918 private IP (10.0.0.0/8,
172.16.0.0/12, 192.168.0.0/16) or ULA (fc00::/7) → CONFIG_GAP,
RISK: HIGH (Step 4a). Internal network topology is disclosed to
anyone who queries the zone publicly. While not directly exploitable
(the IPs are not routable from the internet), the information leak aids
reconnaissance.
CNAME to an internal hostname (e.g., db.internal.corp) →
CONFIG_GAP, RISK: MEDIUM. Leaks internal naming conventions.
Private hosted zone → skip exposure evaluation. Private zones are
not publicly queryable.
Step 5: TTL consistency
For records grouped under the same routing policy (same Name + Type,
different SetIdentifier):
TTL variance > 2x within a routing group → CONFIG_GAP, RISK:
MEDIUM (Step 5a). Resolvers cache the records for different durations,
breaking the traffic-distribution assumptions. Example: a weighted group
with TTL 60 and TTL 3600 means one endpoint is cached 60x longer.
TTL > 3600 on records whose values change frequently (A records to
ELB/autoscaling, weighted records during canary deploys) → CONFIG_GAP,
RISK: LOW (Step 5b). Stale cache delays propagation of value changes.
ALIAS records → do NOT flag TTL. Route 53 ignores the ALIAS TTL and
uses the target's TTL (Step 0 expert knowledge).
Step 6: Aggregation — worst finding wins
The final verdict is the category of the highest-risk finding across all
steps. When two findings have the same risk level, use category priority:
DANGLING > NO_HEALTH_CHECK > DNSSEC_GAP > CONFIG_GAP.
If no findings are produced (all checks pass), the verdict is OK.
Output format (per record set)
RECORD: <name> (<type>, <routing-policy>)
VERDICT: NO_HEALTH_CHECK | DNSSEC_GAP | DANGLING | CONFIG_GAP | OK
REASON: <1-2 sentences citing the worst finding and step number>
RISK: CRITICAL | HIGH | MEDIUM | LOW | OK
FINDINGS:
- [CRITICAL] <finding description (Step Na)>
- [HIGH] <finding description (Step Nb)>
- [OK] <dimension that passed>
REMEDIATION: <specific action per finding, or "None required" if OK>
Worked example — failover PRIMARY without health check
RECORD: api.example.com (A, failover)
VERDICT: NO_HEALTH_CHECK
REASON: Failover PRIMARY record has no HealthCheckId — Route 53 cannot
detect primary failure and will never serve the secondary (Step 2a).
RISK: CRITICAL
FINDINGS:
- [CRITICAL] Failover PRIMARY with no HealthCheckId (Step 2a) — failover
is functionally disabled; traffic goes to dead primary forever
- [OK] DNSSEC signing is enabled on the public hosted zone (Step 3)
- [OK] No dangling ALIAS detected (Step 1)
REMEDIATION:
1. Create or attach a health check:
aws route53 create-health-check --caller-reference <ref>
--health-check-config Type=HTTPS,FullyQualifiedDomainName=api.example.com
,ResourcePath=/health,RequestInterval=30,FailureThreshold=3
2. Associate the health check:
aws route53 change-resource-record-sets --hosted-zone-id <id>
--change-batch file://update-record.json (add HealthCheckId)
Edge-case handling
Moved verbatim → references/advanced-patterns.md § "Edge-case handling".
Load when: auditing records that hit an unusual edge case (conflicting policies, stale HC refs, ETH false)
Anti-Patterns — NEVER
NEVER flag missing health checks on simple-routing records (Type: A/AAAA/CNAME with no routing policy). Simple routing has a single
target — there is nothing to fail over to. Health checks are optional
and add cost without routing benefit.
NEVER require a health check on a failover SECONDARY record. The
secondary is served when the primary health check fails. A health check
on the secondary changes the behaviour from fail-open to fail-closed —
both are valid patterns depending on the SLO. Flag as informational,
not as NO_HEALTH_CHECK.
NEVER flag a weight-0 weighted record for missing health checks.
Weight 0 means no traffic reaches this endpoint — it is a deliberate
drain. A health check is irrelevant when no traffic is served.
NEVER flag DNSSEC on a private hosted zone. DNSSEC is irrelevant
for private DNS — the zone is not publicly resolvable, so there is no
cache-poisoning surface. Flagging it is a false positive.
NEVER flag ALIAS TTL as inconsistent. Route 53 ignores the TTL on
ALIAS records and uses the target resource's TTL. The ALIAS TTL field
exists in the API but has no runtime effect.
NEVER recommend CNAME at the zone apex. Route 53 rejects CNAME at
the apex — always use ALIAS. If a CNAME-at-apex is detected, recommend
converting to ALIAS.
NEVER confuse DNS resolution failure with a dangling alias. An ALIAS
to an ELB may temporarily fail to resolve during a deployment or
configuration change. Confirm the target resource is deleted (not just
temporarily unreachable) before flagging as DANGLING. Use
aws elbv2 describe-load-balancers --query 'LoadBalancers[?DNSName==]' to verify existence.
NEVER recommend deleting a dangling record without first confirming the
target resource is truly gone. Cross-region or cross-account resources
may still exist. Deleting the record before confirming the target is
permanently removed can mask a configuration issue.
NEVER flag a private hosted zone for public-zone exposure. Private
zones are only resolvable from associated VPCs — a private IP in a
private zone is correct and expected.
NEVER assume DNSSEC signing is active just because a KSK exists.
The KSK must be in ACTIVE key state. A KSK in INACTIVE or
ACTION_PENDING means signing is not yet effective. Check
KeySigningKeyTMPL.Status in the get-dnssec output.
NEVER flag multivalue answer records as equivalent to failover.
Multivalue answer is randomised distribution, not failover. A dead IP in
a multivalue set still receives some traffic — but the severity is MEDIUM
(reduced traffic), not CRITICAL (all traffic).
Pre-flight safety checks (run before any remediation CLI)
MANDATORY CONFIRMATION GATE. Before any state-changing operation
(change-resource-record-sets, delete-health-check,
enable-hosted-zone-dnssec), the auditor MUST emit:
CONFIRM: About to <action> on record <name> in zone <id>. This affects DNS resolution for <domain>. Proceed? (yes/no)
Do NOT execute the CLI command until the operator confirms. DNS changes
propagate globally and cannot be instantaneously rolled back.
Capture current state for rollback:
`aws route53 list-resource-record-sets --hosted-zone-id --output json
/tmp/-records-backup-$(date +%s).json`
BEFORE any record change. Route 53 does not version record sets — there
is no undo without a backup.
Verify the health check exists before associating:
aws route53 get-health-check --health-check-id <id>. A stale or
deleted health-check ID silently disables the health-check signal.
For DNSSEC enablement: verify the parent zone supports DNSSEC and
obtain the DS record from the Route 53 console (get-dnssec returns the
DS record value to publish at the registrar). Enabling DNSSEC without
publishing the DS record provides no resolver validation (Step 3b).
For dangling-record remediation: confirm the target resource is
deleted before removing the record. If the target still exists (cross-
region, different account), the record is not dangling — investigate the
DNS resolution path instead.
Prefer UPSERT over CREATE/DELETE in change-resource-record-sets
batches. UPSERT is idempotent — it creates if absent and updates if
present, reducing the risk of duplicate records or accidental deletion.
Remediation guidance
Moved verbatim → references/diagnostic-commands.md § "Remediation guidance (per verdict)".
Load when: emitting REMEDIATION for any verdict — verify-then-delete/create-HC/enable-DNSSEC CLI sequences
Recent AWS features (2024-2026)
Moved verbatim → references/advanced-patterns.md § "Recent AWS features (2024-2026)".
Load when: checking whether a newer Route 53 feature changes the audit surface
References (load on demand)
- references/advanced-patterns.md — Step 0 non-obvious Route 53 behaviours, edge-case handling, recent AWS features
- references/diagnostic-commands.md — per-verdict remediation CLI sequences (DANGLING, NO_HEALTH_CHECK, DNSSEC_GAP, CONFIG_GAP)
Domain
AWS CloudOps / Route 53 DNS Security & Reliability.
AWS documentation
1---2name: route53-record-auditor3description: Audits AWS Route 53 record sets for missing health checks on weighted, failover, latency, geolocation, and multivalue routing policies; dangling ALIAS records pointing to deleted AWS resources (ELB, CloudFront, S3 website, API Gateway); DNSSEC signing gaps on public hosted zones; public hosted-zone exposure of private/internal IP addresses; and TTL inconsistency within routing-policy record groups. Emits a deterministic verdict (NO_HEALTH_CHECK | DNSSEC_GAP | DANGLING | CONFIG_GAP | OK) per record with enumerated findings and specific CLI remediation. Use when reviewing Route 53 records, checking for dangling DNS records, validating failover or weighted health checks, auditing DNSSEC posture, or hardening DNS configuration before production deployment.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline record-set classification. Live-account audits use aws route53 list-hosted-zones, list-resource-record-sets, get-hosted-zone, get-dnssec, list-health-checks, and aws ec2 describe-network-interfaces (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/route53-record-auditor8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Networking15 verdict_shape: NO_HEALTH_CHECK | DNSSEC_GAP | DANGLING | CONFIG_GAP | OK16 when_to_use: Reviewing Route 53 record sets before production deployment, auditing DNS failover health-check coverage, detecting dangling ALIAS records pointing to deleted AWS resources, validating DNSSEC signing on public hosted zones, checking public-zone exposure of private IPs, or hardening DNS configuration across an account.17 activation_triggers: audit these Route 53 records, is my DNS failover healthy, dangling Route 53 record, missing health check weighted, DNSSEC not enabled, public hosted zone exposure, Route 53 TTL inconsistency, subdomain takeover risk, failover PRIMARY no health check18 invocation_schema: 'Input: either (a) one or more Route 53 record sets (list-resource-record-sets JSON), optionally paired with hosted-zone metadata (get-dnssec, get-hosted-zone), OR (b) a hosted-zone-id for live-account audit. Output: deterministic RECORD/VERDICT/REASON/RISK/FINDINGS/REMEDIATION block per record, where VERDICT is in {NO_HEALTH_CHECK, DNSSEC_GAP, DANGLING, CONFIG_GAP, OK, ERROR}.'19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 keywords: Route 53, DNS, health check, failover routing, weighted routing, latency routing, geolocation routing, multivalue answer, DNSSEC, dangling record, subdomain takeover, ALIAS record, public hosted zone, TTL consistency, record set audit, DNS hardening, Route 53 misconfiguration22 tags: route53, dns, networking, health-check, dnssec, dangling-record, ttl, audit23---2425# Route 53 Record Auditor2627## Mindset2829**One-line takeaway:** a DNS record set is the last hop before a user reaches30your infrastructure. Every routing-policy record that distributes traffic31without a health check is a promise to route users to a potentially dead32endpoint, and every dangling ALIAS to a deleted AWS resource is either an33immediate outage or a subdomain-takeover vector.3435Route 53 record auditing is not just "does the record resolve." It is:36- **Health-check coverage** — failover routing without a health check on the37 PRIMARY record means Route 53 can never detect failure, so it serves the38 dead primary forever. This is the single most dangerous Route 5339 misconfiguration.40- **Dangling ALIAS targets** — an ALIAS to a deleted ELB, CloudFront41 distribution, or S3 website bucket causes NXDOMAIN (outage) or, for S342 website and API Gateway custom domains, subdomain takeover (another43 account recreates the deleted resource and intercepts traffic).44- **DNSSEC** — a public hosted zone without DNSSEC signing is susceptible to45 cache-poisoning and DNS-spoofing attacks. A zone with signing enabled but46 no DS record at the parent provides no resolver-side validation.47- **Public-zone exposure** — an A record to `10.50.10.20` in a public hosted48 zone discloses internal network topology to anyone who queries the zone.49- **TTL consistency** — mismatched TTLs within a weighted record group cause50 inconsistent caching behaviour across resolvers, breaking load51 distribution assumptions.5253## Quick reference — severity thresholds5455| Condition | Verdict | Risk | Step |56|---|---|---|---|57| ALIAS to deleted S3 website / API Gateway custom domain | **DANGLING** | **CRITICAL** | 1a |58| ALIAS to deleted ELB / CloudFront / VPC endpoint | **DANGLING** | **HIGH** | 1b |59| Failover PRIMARY, no HealthCheckId | **NO_HEALTH_CHECK** | **CRITICAL** | 2a |60| Weighted (weight > 0), no HealthCheckId | **NO_HEALTH_CHECK** | **HIGH** | 2b |61| Latency routing, no HealthCheckId | **NO_HEALTH_CHECK** | **HIGH** | 2c |62| Geolocation routing, no HealthCheckId | **NO_HEALTH_CHECK** | **MEDIUM** | 2d |63| Multivalue answer, no HealthCheckId | **NO_HEALTH_CHECK** | **MEDIUM** | 2e |64| Public zone, DNSSEC signing disabled | **DNSSEC_GAP** | **HIGH** | 3a |65| Public zone, DNSSEC signed but no DS at parent | **DNSSEC_GAP** | **MEDIUM** | 3b |66| Private IP (RFC 1918/4193) in a public zone | **CONFIG_GAP** | **HIGH** | 4a |67| TTL variance > 2x within routing group | **CONFIG_GAP** | **MEDIUM** | 5a |68| TTL > 3600 on frequently changing records | **CONFIG_GAP** | **LOW** | 5b |69| All checks pass | **OK** | **OK** | 6 |7071## Pre-flight: zone and record-set metadata gate7273Before evaluating individual record sets, classify the hosted zone. Zone-level74attributes short-circuit several audit dimensions — misclassifying them75produces false positives.7677**Pagination note:** `aws route53 list-resource-record-sets` returns up to78300 record sets per call. Use `--start-record-name` and `--start-record-type`79from the prior `NextRecordName` to page through all records. Iterating only80the first page silently skips the tail of the zone — these are the records81most likely to be stale or unmanaged.8283| Attribute | Value | Effect on audit |84|---|---|---|85| `Config.PrivateZone: true` | **Private hosted zone.** DNSSEC is N/A (private zones are not publicly resolvable). Public-zone exposure is N/A. Still audit health checks and dangling ALIAS. |86| `Config.PrivateZone: false` | **Public hosted zone.** Full audit — DNSSEC, exposure, health checks, dangling, TTL. |87| `DnssecSigning` absent or key-signing key inactive | **DNSSEC not enabled.** Jump to Step 3a if public zone. |88| `DnssecSigning` present, KSK active | DNSSEC signing is on. Check for DS record at parent (Step 3b). |8990**If the record-set JSON is malformed** (missing required fields `Name`,91`Type`, `TTL`), output:9293```text94RECORD: <name>95VERDICT: ERROR96REASON: Record set is malformed or missing required fields — cannot classify.97REMEDIATION: Retrieve the canonical record set with98 aws route53 list-resource-record-sets --hosted-zone-id <id> --output json99 and re-audit.100```101102## Process — Classification logic (apply in order, aggregate worst)103104### Step 0: Expert knowledge — non-obvious Route 53 behaviours105106> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Step 0: Expert knowledge — non-obvious Route 53 behaviours".107> Load when: classifying any record — these non-obvious behaviours change verdicts if ignored108109### Step 1: Dangling ALIAS target detection (highest priority — outage or takeover)110111For each record with `AliasTarget`, verify the target resource exists. The112detection method depends on the target type:113114- **ALIAS to S3 website endpoint** (`*.s3-website-*.amazonaws.com`): if the115 bucket has been deleted or website hosting disabled, the DNS name116 returns NXDOMAIN. Another AWS account can recreate a bucket with the same117 name and re-enable website hosting — **subdomain takeover**. This is118 **DANGLING**, RISK: **CRITICAL** (Step 1a).119120- **ALIAS to API Gateway custom domain** (`*.execute-api.*.amazonaws.com`):121 if the custom domain or API mapping has been deleted, the endpoint122 returns NXDOMAIN. Another account can claim the same custom domain in123 some configurations. **DANGLING**, RISK: **CRITICAL** (Step 1a).124125- **ALIAS to ELB / ALB / NLB** (`*.elb.amazonaws.com`): if the load126 balancer has been deleted, the DNS name does not resolve. ELB DNS names127 include a random suffix, making direct takeover unlikely, but the record128 causes NXDOMAIN (immediate outage). **DANGLING**, RISK: **HIGH** (Step 1b).129130- **ALIAS to CloudFront** (`*.cloudfront.net`): if the distribution has131 been deleted, the DNS name returns NXDOMAIN. Distribution IDs are132 globally unique, so takeover is not possible. **DANGLING**, RISK: **HIGH**133 (Step 1b).134135- **ALIAS to VPC interface endpoint** (`*.execute-api.*.amazonaws.com` or136 service-specific): if the endpoint has been deleted, the private DNS137 name does not resolve. **DANGLING**, RISK: **HIGH** (Step 1b).138139Detection signal: `AliasTarget.DNSName` that does not resolve when queried140(or the `EvaluateTargetHealth: true` flag combined with an unreachable141target). For offline audits, the operator provides the resolution status.142143### Step 2: Health check on routing-policy records144145For records with a routing policy (`Weighted`, `Failover`, `Latency`,146`GeoLocation`, `MultiValueAnswer`), check for `HealthCheckId`:147148- **Failover PRIMARY, no `HealthCheckId`** → **NO_HEALTH_CHECK**, RISK:149 **CRITICAL** (Step 2a). Without a health check, Route 53 has no signal150 to fail over — the PRIMARY is always considered healthy. A failover151 configuration with a health-check-less PRIMARY is functionally152 indistinguishable from no failover at all.153154- **Weighted, `Weight > 0`, no `HealthCheckId`** → **NO_HEALTH_CHECK**,155 RISK: **HIGH** (Step 2b). Route 53 distributes the weight proportionally156 even if the endpoint is dead — dead endpoints receive their full share157 of traffic.158159- **Latency routing, no `HealthCheckId`** → **NO_HEALTH_CHECK**, RISK:160 **HIGH** (Step 2c). Users are routed to the lowest-latency region even161 if that region's endpoint is down.162163- **Geolocation routing, no `HealthCheckId`** → **NO_HEALTH_CHECK**,164 RISK: **MEDIUM** (Step 2d). Users from a mapped region are always routed165 to that region's endpoint.166167- **Multivalue answer, no `HealthCheckId`** → **NO_HEALTH_CHECK**,168 RISK: **MEDIUM** (Step 2e). Route 53 randomises across all records,169 including dead ones (reduced but not eliminated traffic to dead IPs).170171- **Weighted, `Weight: 0`, no `HealthCheckId`** → **no finding**. Weight 0172 is a deliberate drain — no traffic reaches this record.173174- **Failover SECONDARY, no `HealthCheckId`** → **no finding** (informational175 note only). The secondary is served when the primary fails. A health176 check on SECONDARY is recommended for fail-closed behaviour but not177 required for basic failover.178179### Step 3: DNSSEC signing gap (public hosted zones only)180181Evaluate DNSSEC only for **public** hosted zones (`Config.PrivateZone: false`):182183- **No active key-signing key (KSK) or zone-signing key (ZSK)** →184 **DNSSEC_GAP**, RISK: **HIGH** (Step 3a). The zone is susceptible to185 cache-poisoning. Enable DNSSEC signing, create a KSK, and publish the DS186 record at the parent zone (registrar/TLD).187188- **KSK active but no DS record at the parent zone** → **DNSSEC_GAP**,189 RISK: **MEDIUM** (Step 3b). Route 53 signs the zone, but resolvers cannot190 validate signatures without the DS chain. Verify the DS record is191 published by querying the parent zone or checking the registrar.192193- **Private hosted zone** → skip DNSSEC evaluation entirely. DNSSEC is194 irrelevant for private DNS — private zones are resolved only within195 associated VPCs, not by public recursive resolvers.196197### Step 4: Public hosted-zone exposure198199For records in **public** hosted zones, check for private/internal targets:200201- **A/AAAA record pointing to RFC 1918 private IP** (`10.0.0.0/8`,202 `172.16.0.0/12`, `192.168.0.0/16`) or ULA (`fc00::/7`) → **CONFIG_GAP**,203 RISK: **HIGH** (Step 4a). Internal network topology is disclosed to204 anyone who queries the zone publicly. While not directly exploitable205 (the IPs are not routable from the internet), the information leak aids206 reconnaissance.207208- **CNAME to an internal hostname** (e.g., `db.internal.corp`) →209 **CONFIG_GAP**, RISK: **MEDIUM**. Leaks internal naming conventions.210211- **Private hosted zone** → skip exposure evaluation. Private zones are212 not publicly queryable.213214### Step 5: TTL consistency215216For records grouped under the same routing policy (same `Name` + `Type`,217different `SetIdentifier`):218219- **TTL variance > 2x within a routing group** → **CONFIG_GAP**, RISK:220 **MEDIUM** (Step 5a). Resolvers cache the records for different durations,221 breaking the traffic-distribution assumptions. Example: a weighted group222 with TTL 60 and TTL 3600 means one endpoint is cached 60x longer.223224- **TTL > 3600 on records whose values change frequently** (A records to225 ELB/autoscaling, weighted records during canary deploys) → **CONFIG_GAP**,226 RISK: **LOW** (Step 5b). Stale cache delays propagation of value changes.227228- **ALIAS records** → do NOT flag TTL. Route 53 ignores the ALIAS TTL and229 uses the target's TTL (Step 0 expert knowledge).230231### Step 6: Aggregation — worst finding wins232233The final verdict is the category of the **highest-risk finding** across all234steps. When two findings have the same risk level, use category priority:235**DANGLING > NO_HEALTH_CHECK > DNSSEC_GAP > CONFIG_GAP**.236237If no findings are produced (all checks pass), the verdict is **OK**.238239## Output format (per record set)240241```text242RECORD: <name> (<type>, <routing-policy>)243VERDICT: NO_HEALTH_CHECK | DNSSEC_GAP | DANGLING | CONFIG_GAP | OK244REASON: <1-2 sentences citing the worst finding and step number>245RISK: CRITICAL | HIGH | MEDIUM | LOW | OK246FINDINGS:247 - [CRITICAL] <finding description (Step Na)>248 - [HIGH] <finding description (Step Nb)>249 - [OK] <dimension that passed>250REMEDIATION: <specific action per finding, or "None required" if OK>251```252253### Worked example — failover PRIMARY without health check254255```text256RECORD: api.example.com (A, failover)257VERDICT: NO_HEALTH_CHECK258REASON: Failover PRIMARY record has no HealthCheckId — Route 53 cannot259detect primary failure and will never serve the secondary (Step 2a).260RISK: CRITICAL261FINDINGS:262 - [CRITICAL] Failover PRIMARY with no HealthCheckId (Step 2a) — failover263 is functionally disabled; traffic goes to dead primary forever264 - [OK] DNSSEC signing is enabled on the public hosted zone (Step 3)265 - [OK] No dangling ALIAS detected (Step 1)266REMEDIATION:267 1. Create or attach a health check:268 aws route53 create-health-check --caller-reference <ref>269 --health-check-config Type=HTTPS,FullyQualifiedDomainName=api.example.com270 ,ResourcePath=/health,RequestInterval=30,FailureThreshold=3271 2. Associate the health check:272 aws route53 change-resource-record-sets --hosted-zone-id <id>273 --change-batch file://update-record.json (add HealthCheckId)274```275276## Edge-case handling277278> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Edge-case handling".279> Load when: auditing records that hit an unusual edge case (conflicting policies, stale HC refs, ETH false)280281## Anti-Patterns — NEVER282283- NEVER flag missing health checks on **simple-routing** records (`Type:284 A/AAAA/CNAME` with no routing policy). Simple routing has a single285 target — there is nothing to fail over to. Health checks are optional286 and add cost without routing benefit.287288- NEVER require a health check on a **failover SECONDARY** record. The289 secondary is served when the primary health check fails. A health check290 on the secondary changes the behaviour from fail-open to fail-closed —291 both are valid patterns depending on the SLO. Flag as informational,292 not as NO_HEALTH_CHECK.293294- NEVER flag a **weight-0** weighted record for missing health checks.295 Weight 0 means no traffic reaches this endpoint — it is a deliberate296 drain. A health check is irrelevant when no traffic is served.297298- NEVER flag **DNSSEC** on a **private hosted zone**. DNSSEC is irrelevant299 for private DNS — the zone is not publicly resolvable, so there is no300 cache-poisoning surface. Flagging it is a false positive.301302- NEVER flag **ALIAS TTL** as inconsistent. Route 53 ignores the TTL on303 ALIAS records and uses the target resource's TTL. The ALIAS TTL field304 exists in the API but has no runtime effect.305306- NEVER recommend **CNAME** at the zone apex. Route 53 rejects CNAME at307 the apex — always use ALIAS. If a CNAME-at-apex is detected, recommend308 converting to ALIAS.309310- NEVER confuse **DNS resolution failure** with a dangling alias. An ALIAS311 to an ELB may temporarily fail to resolve during a deployment or312 configuration change. Confirm the target resource is deleted (not just313 temporarily unreachable) before flagging as DANGLING. Use314 `aws elbv2 describe-load-balancers --query315 'LoadBalancers[?DNSName==`<dns>`]'` to verify existence.316317- NEVER recommend deleting a dangling record without first confirming the318 target resource is truly gone. Cross-region or cross-account resources319 may still exist. Deleting the record before confirming the target is320 permanently removed can mask a configuration issue.321322- NEVER flag a **private hosted zone** for public-zone exposure. Private323 zones are only resolvable from associated VPCs — a private IP in a324 private zone is correct and expected.325326- NEVER assume **DNSSEC signing is active** just because a KSK exists.327 The KSK must be in `ACTIVE` key state. A KSK in `INACTIVE` or328 `ACTION_PENDING` means signing is not yet effective. Check329 `KeySigningKeyTMPL.Status` in the `get-dnssec` output.330331- NEVER flag **multivalue answer** records as equivalent to failover.332 Multivalue answer is randomised distribution, not failover. A dead IP in333 a multivalue set still receives some traffic — but the severity is MEDIUM334 (reduced traffic), not CRITICAL (all traffic).335336## Pre-flight safety checks (run before any remediation CLI)337338- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation339 (`change-resource-record-sets`, `delete-health-check`,340 `enable-hosted-zone-dnssec`), the auditor MUST emit:341 `CONFIRM: About to <action> on record <name> in zone <id>. This affects342 DNS resolution for <domain>. Proceed? (yes/no)`343 Do NOT execute the CLI command until the operator confirms. DNS changes344 propagate globally and cannot be instantaneously rolled back.345346- **Capture current state for rollback:**347 `aws route53 list-resource-record-sets --hosted-zone-id <id> --output json348 > /tmp/<zone-id>-records-backup-$(date +%s).json`349 BEFORE any record change. Route 53 does not version record sets — there350 is no undo without a backup.351352- **Verify the health check exists before associating:**353 `aws route53 get-health-check --health-check-id <id>`. A stale or354 deleted health-check ID silently disables the health-check signal.355356- **For DNSSEC enablement:** verify the parent zone supports DNSSEC and357 obtain the DS record from the Route 53 console (`get-dnssec` returns the358 DS record value to publish at the registrar). Enabling DNSSEC without359 publishing the DS record provides no resolver validation (Step 3b).360361- **For dangling-record remediation:** confirm the target resource is362 deleted before removing the record. If the target still exists (cross-363 region, different account), the record is not dangling — investigate the364 DNS resolution path instead.365366- **Prefer UPSERT over CREATE/DELETE** in change-resource-record-sets367 batches. UPSERT is idempotent — it creates if absent and updates if368 present, reducing the risk of duplicate records or accidental deletion.369370## Remediation guidance371372> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Remediation guidance (per verdict)".373> Load when: emitting REMEDIATION for any verdict — verify-then-delete/create-HC/enable-DNSSEC CLI sequences374375## Recent AWS features (2024-2026)376377> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Recent AWS features (2024-2026)".378> Load when: checking whether a newer Route 53 feature changes the audit surface379380## References (load on demand)381382- [references/advanced-patterns.md](references/advanced-patterns.md) — Step 0 non-obvious Route 53 behaviours, edge-case handling, recent AWS features383- [references/diagnostic-commands.md](references/diagnostic-commands.md) — per-verdict remediation CLI sequences (DANGLING, NO_HEALTH_CHECK, DNSSEC_GAP, CONFIG_GAP)384385## Domain386387AWS CloudOps / Route 53 DNS Security & Reliability.388389## AWS documentation390391- **Amazon Route 53 Developer Guide** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Welcome.html392- **Route 53 Security** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/security.html393- **Route 53 API Reference** — https://docs.aws.amazon.com/Route53/latest/APIReference/394- **Route 53 CLI Reference** — https://docs.aws.amazon.com/cli/latest/reference/route53/395- **DNSSEC signing** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec.html396