2025-12-14 16:55:00+08
Route 53 is Amazon Web Services’ (AWS) highly available and scalable Domain Name System (DNS) service. Beyond standard domain name resolution, it deeply integrates with other AWS services—such as EC2, S3, CloudFront, and Elastic Load Balancing (ELB)—to enable intelligent traffic routing, health checks, and failover capabilities.
Before you begin, please confirm the following:
You have an AWS account
→ If not, sign up at aws.amazon.com.
→ A credit card is required (even for the Free Tier).
You own a domain name
→ This can be a domain already registered elsewhere (e.g., GoDaddy, Namecheap), or a new one purchased directly through Route 53.
You know your DNS resolution targets
→ Examples:
example.com to your EC2 instance’s public IP (54.200.10.5).www.example.com to a CloudFront distribution.A Hosted Zone is a container for DNS records—similar to “DNS settings” in Alibaba Cloud.
Steps:
example.com✅ Upon success, Route 53 automatically generates NS (Name Server) and SOA (Start of Authority) records.
⚠️ The NS addresses (e.g., ns-123.awsdns-01.com) are the authoritative name servers you must configure at your domain registrar.
This step determines who controls DNS resolution for your domain.
✅ No action needed! AWS automatically configures name server delegation.
🕒 Propagation time: Typically minutes to hours; full global sync may take 24–48 hours.
Now you can freely configure A, CNAME, MX, and other record types in Route 53.
@, i.e., example.com)A – IPv4 address54.200.10.5 (your server IP)www to CloudFront (use Alias)Alias records are a Route 53-exclusive feature that lets you map domains (including root domains) to AWS resources—for free!
wwwA – IPv4 addressd1a2b3c4d5e6f7.cloudfront.net)✅ Benefits of Alias records:
example.com) pointing directly to CloudFront, ELB, or S3Route 53 offers multiple Routing Policies for high availability and smart traffic management.
Automatically switch to a backup if the primary fails.
Steps:
Create a Health Check:
→ Left menu → Health checks → Create health check
→ Protocol: HTTP/HTTPS/TCP
→ Target: Primary server IP or domain
→ Optional path: /health
→ Save
Create Primary Record:
→ Record name: @
→ Routing policy: Failover
→ Failover record type: Primary
→ Associate with the health check
→ Value: 54.200.10.5
Create Secondary Record:
→ Same name: @
→ Routing policy: Failover
→ Failover record type: Secondary
→ Value: 54.200.20.10 (backup IP)
✅ When the primary health check fails, Route 53 automatically returns the secondary IP.
Route users based on their geographic location.
Example:
@54.200.10.5@13.213.10.20Route users to the AWS region with the lowest network latency.
us-east-1, ap-southeast-1)| Recommendation | Details |
|---|---|
| TTL | Set to 60–300 seconds for critical services to enable fast failover |
| Health Checks | Apply to all public-facing endpoints to avoid sending traffic to failed instances |
| Alias Records | Always prefer Alias over standard A/CNAME for AWS resources |
| IAM Permissions | Restrict Route 53 modification rights via IAM policies |
| Audit Logging | Enable AWS CloudTrail to log all DNS changes |
❌ Avoid:
| Item | Cost |
|---|---|
| Hosted Zone | $0.50 / month / domain |
| Standard Queries | $0.40 / million queries |
| Health Checks (HTTP) | $0.50 / month / check |
| Alias Queries | Free |
| Domain Registration | Varies by TLD (e.g., .com ≈ $12/year) |
💡 Most small websites cost under $1/month in total.
Command-line testing:
dig example.com A
nslookup www.example.com
Online tools:
In AWS Console:
✅ 100% SLA – Industry-leading availability guarantee
✅ Deep AWS Integration – One-click Alias to CloudFront, ELB, S3
✅ Intelligent Routing – Supports failover, geolocation, latency, weighted, and more
✅ Pay-as-you-go – No minimum fees; scales from personal projects to enterprise
✅ API-Driven – Fully automatable via AWS CLI or SDKs
Ideal for:
If you’re already using AWS, Route 53 is almost always the best—and often the only—recommended DNS solution.