An Amazon Route 53 record (often called a DNS record or record set) is an entry in your hosted zone that tells DNS how to route traffic for a domain or subdomain.
πΉ What does each Route 53 record contain?
1. Domain / Subdomain Name
The DNS name this record applies to
Examples:
example.com(root/apex domain)www.example.com(subdomain)api.example.com
This is what users type in browsers or what systems resolve
2. Record Type
Defines what kind of data is stored and how DNS should interpret it
Examples:
A → maps to IPv4
CNAME → maps one domain to another
MX → mail servers
(Full list explained below π)
3. Value (or Target)
The actual destination for the record
Examples:
For A record →
192.168.1.1For AAAA → IPv6 address
For CNAME →
myapp.elb.amazonaws.comFor MX →
10 mail.example.com
π In Route 53, this can also be an AWS resource (ELB, S3, CloudFront, etc.) using an Alias record
4. Routing Policy
This defines how Route 53 responds to DNS queries (important feature)
Common routing policies:
Simple
Single resource → always return same value
Weighted
Split traffic (e.g., 70% to A, 30% to B)
Latency-based
Route to the lowest latency region
Failover
Primary + secondary (health check based)
Geolocation
Route based on user location (country/continent)
Geoproximity (traffic flow)
Route based on geographic distance
Multivalue Answer
Return multiple healthy IPs (basic load balancing)
5. TTL (Time To Live)
Time (in seconds) that DNS resolvers cache the record
Example:
TTL = 300 → cache for 5 minutes
π Lower TTL:
Faster updates
More DNS queries
π Higher TTL:
Better performance
Slower propagation of changes
πΉ DNS Record Types supported in Route 53
Route 53 supports a wide range of DNS record types:
π Core Web Routing
A (Address Record) → maps domain → IPv4
AAAA → maps domain → IPv6
CNAME (Canonical Name) → domain alias to another domain
ALIAS (Route 53 specific) → like CNAME but works at root domain
π§ Email Related
MX (Mail Exchange) → mail servers for domain
TXT → used for SPF, DKIM, verification
SPF → legacy (now replaced by TXT)
π Security / DNSSEC
CAA → which certificate authorities can issue SSL certs
DS → DNSSEC delegation signer
π§ Name Server & Authority
NS → name servers for the domain
SOA (Start of Authority) → authoritative zone info
π Advanced / Telecom / Service Discovery
NAPTR → used in SIP/VoIP systems
SRV → service location (host + port)
PTR → reverse DNS (IP → domain)
π§Ύ Misc / Verification / Metadata
TXT → general-purpose (very commonly used)
Domain verification (AWS, Google, etc.)
SPF / DKIM / DMARC
πΉ Quick Summary
A Route 53 record =
Name + Type + Value + Routing Policy + TTL
Example:
www.example.com A 192.168.1.1 Simple 300
If you want, I can:
Give real AWS examples (ELB, S3, CloudFront setup)
Or explain Alias vs CNAME (very important interview topic)
No comments:
Post a Comment