1.Route 53 vocabulary: zones, records, and TTL
A hosted zone holds the DNS records for a domain. An alias record is Route 53's own extension that points directly at an AWS resource (like a load balancer) without the extra lookup a CNAME needs — and unlike a CNAME, an alias record can be used at a zone apex.
Key features
- A hosted zone is a container for the DNS records of one domain
- A record maps a name to a value: A, AAAA, CNAME, MX, TXT, and others
- An alias record is Route 53-specific — points at an AWS resource, works at the zone apex, no extra charge
- A CNAME cannot be used at a zone apex (the bare domain); an alias record can
- TTL controls how long a resolver caches an answer before asking again
Alias record vs CNAME
- Alias record
- Works at the zone apex (example.com)
- Free for AWS resource targets
- TTL managed automatically
- CNAME
- Cannot be used at the zone apex
- Standard query charge
- TTL set explicitly by you
Command
example.com → ALIAS → my-alb-1234.eu-west-1.elb.amazonaws.com (apex, free, auto TTL)
www.example.com → CNAME → example.herokuapp.com (not apex, standard billing)An alias record is a Route 53-specific A/AAAA record that works at the zone apex, costs nothing extra for AWS targets, and manages its own TTL — a CNAME cannot do any of those three things.