You created a public hosted zone and records for `example.com`, but `dig example.com` returns `NXDOMAIN` or old records.
BeginnerTroubleshootingRoute 53, CloudFront, API Gateway and Messaging
Answer
Likely causes → The registrar still points to the old name servers, not to the four NS records of the new hosted zone. Another cause: two hosted zones exist for the same name and you edited the one that is not delegated.
Diagnose →
aws route53 list-hosted-zones-by-name --dns-name example.com
aws route53 get-hosted-zone --id Z0123ABC --query 'DelegationSet.NameServers'
dig NS example.com +short
dig @a.gtld-servers.net NS example.com +norecurse # what the parent zone delegates to
Fix →
- Update the NS at the registrar to match the zone's delegation set. For Route 53 Domains, run
aws route53domains update-domain-nameservers - Delete the duplicate zone
Prevent → Use one hosted zone per domain in IaC, with an output that checks delegation, and lower NS TTLs before migrations.
More on Route 53, CloudFront, API Gateway and Messaging
`InvalidChangeBatch: RRSet of type CNAME with DNS name example.com. is not permitted at apex in zone example.com.`BeginnerThe primary Region is down, but Route 53 failover records still send traffic to it.IntermediateA Route 53 health check reports `Failure: Connection timed out` for an endpoint that works fine from your laptop.IntermediateYou changed an A record an hour ago, but some users still reach the old server, and a newly created name returned `NXDOMAIN` for a while.AdvancedCloudFront returns `403 AccessDenied` (S3 XML) for every object after you switched the S3 origin to Origin Access Control.IntermediateCloudFront shows `502 ERROR. The request could not be satisfied. CloudFront wasn't able to connect to the origin.`Intermediate