SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free🗺️ Learning Roadmaps

Route53Cheatsheets

Quick reference — commands, syntax, and patterns

✍️
Written by senior engineers. Reviewed for technical accuracy.· Updated 2025 · SynfraCore Route53 Team
Expert Content

Route 53 Cheatsheet

Core Commands

bash
# List hosted zones
aws route53 list-hosted-zones
aws route53 list-hosted-zones-by-name --dns-name example.com

# Create hosted zone
aws route53 create-hosted-zone \
  --name example.com --caller-reference $(date +%s)

# List records in zone
aws route53 list-resource-record-sets --hosted-zone-id Z123

# Create/update record (change batch)
aws route53 change-resource-record-sets --hosted-zone-id Z123 \
  --change-batch '{
    "Changes": [{
      "Action": "UPSERT",
      "ResourceRecordSet": {
        "Name": "www.example.com",
        "Type": "A",
        "TTL": 300,
        "ResourceRecords": [{"Value": "1.2.3.4"}]
      }
    }]
  }'

# Alias record (points to AWS resource — no TTL, no charge for queries)
aws route53 change-resource-record-sets --hosted-zone-id Z123 \
  --change-batch '{
    "Changes": [{
      "Action": "UPSERT",
      "ResourceRecordSet": {
        "Name": "app.example.com",
        "Type": "A",
        "AliasTarget": {
          "HostedZoneId": "Z35SXDOTRQ7X7K",
          "DNSName": "my-alb-123.us-east-1.elb.amazonaws.com",
          "EvaluateTargetHealth": true
        }
      }
    }]
  }'

# Health check
aws route53 create-health-check \
  --caller-reference $(date +%s) \
  --health-check-config Type=HTTPS,FullyQualifiedDomainName=www.example.com,Port=443,ResourcePath=/health

aws route53 list-health-checks
aws route53 get-health-check-status --health-check-id xxx

Record Types Quick Reference

TypeUse CaseExample

|------|----------|---------|

AIPv4 address1.2.3.4
AAAAIPv6 address2001:db8::1
CNAMEAlias to another hostnamewww → example.com
AliasAWS resource alias (free)→ ALB, CloudFront, S3
MXMail server10 mail.example.com
TXTText records, verificationSPF, DKIM, domain verify
NSName serversns-xxx.awsdns-xx.com
SOAZone authorityCreated automatically
SRVService location_sip._tcp.example.com

Routing Policies Summary

PolicyUse CaseKey Feature

|--------|----------|-------------|

SimpleSingle resourceNo health checks
FailoverActive-passive HAPrimary/Secondary
WeightedA/B testing, blue/green% split 0-255
LatencyMulti-region active-activeLowest latency region
GeolocationCompliance, localisationUser geographic location
GeoproximityCustom geographic routingBias adjustment
MultivalueBasic DNS load balancingUp to 8 healthy records
IP-basedISP or on-prem routingCIDR-based routing
Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
Up Next
📝
Route53Notes
Key takeaways, tips, and important points to remember
Also Worth Exploring
← Back to all Route53 modules
CertificationNotes