π Amazon Route 53 Overview
Amazon Route 53 is a Managed DNS (Domain Name System) service.
- DNS = "Phonebook of the Internet"
- It helps clients resolve domain names (URLs) to IP addresses.
- Route 53 supports multiple record types to map names to resources.
π Common DNS Record Typesβ
| Record Type | Description | Example |
|---|---|---|
| A Record | Maps domain β IPv4 address | www.example.com β 12.34.56.78 |
| AAAA Record | Maps domain β IPv6 address | www.example.com β 2001:db8::7334 |
| CNAME Record | Maps hostname β another hostname | search.example.com β www.example.com |
| Alias Record | Maps domain β AWS resource (ELB, CloudFront, S3, RDS, etc.) | example.com β AWS Resource |
π¦ How Route 53 Works (High-Level)β
- User enters
myapp.mydomain.comin the browser. - Browser sends a DNS query to Route 53.
- Route 53 returns the IP address for that domain.
- Browser connects to that IP β reaches the correct server β gets HTTP response.

βοΈ Route 53 Routing Policiesβ
Used to determine how traffic is directed based on use case.
| Routing Policy | Health Check | Description | Use Case |
|---|---|---|---|
| Simple | β No | Returns a single resource for a domain | Single web server |
| Weighted | β Yes | Distributes traffic across multiple resources based on assigned weights | Load balancing (e.g., 70%-20%-10%) |
| Latency-Based | β Yes | Routes users to the region with the lowest network latency | Global apps β minimize latency |
| Failover | β Yes | Routes traffic to a standby resource when the primary fails | Disaster recovery (active-passive setup) |

π§© Key Exam Tipsβ
- Route 53 = Managed DNS
- Simple = 1 target, no health checks
- Weighted = distribute load
- Latency = choose nearest region
- Failover = DR / backup routing
- Alias records integrate with AWS resources (ELB, CloudFront, etc.)
π Route 53 + EC2 β Latency-Based Routingβ
This guide shows how to host simple web servers in two AWS regions and route users automatically to the lowest-latency region using Amazon Route 53.
1. Register a Domain (Route 53)β
- AWS Console β Route 53 β Create hosted zones
- Select Public hosted zone
- Click Create hosted zone
- This zone will store DNS records


2. Launch EC2 Instances (Two Regions)β
- Security Group: allow HTTP (port 80) inbound
- Launch, then copy each instanceβs Public IPv4 Address
- Ireland(54.155.150.72)
- Oregon(34.214.42.89)
3. Create Latency-Based Records (Route 53)β
- Hosted Zone β Create record
- Record name:
wwwType: A Routing policy: Latency - Add first record:
- Value: Ireland EC2 IP
- Region: EU (Ireland) Identifier: βIreland-Instanceβ
- Add second record:
- Value: US EC2 IP
- Region: US West (Oregon) Identifier: βUS-Instanceβ

4. Test Routingβ
| Method | Command / Action |
|---|---|
| Browser | Open http://www.himanshupapola.tech |
| DNS | nslookup www.himanshupapola.tech |
| Cross-region test | Use a VPN to switch regions and reload the site |
Expected:
- From Europe β βHello from Irelandβ
- From US β βHello from USβ

5. Cleanupβ
| Task | Command / Action |
|---|---|
| Terminate EC2 | aws ec2 terminate-instances --instance-ids <IDs> |
| Delete DNS records | Remove A records for www |
| Delete hosted zone | aws route53 delete-hosted-zone --id <ZONEID> |
| Disable auto-renew | aws route53domains disable-domain-auto-renew --domain-name mydomain.com |
π° Cost & Notesβ
| Resource | Typical Cost |
|---|---|
| Domain | ~$12/yr (not fixed) |
| Hosted Zone | ~$0.50/month |
| EC2 (t2.micro) | Free tier eligible or per-hour cost |
| Data Transfer | Regional rates apply |
Tip: Use short TTL (e.g., 60 seconds) for faster DNS propagation while testing.