

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Route 53 Hosted Zones
incomplete
2: A Records
incomplete
3: DNS TTL and Caching
incomplete
4: Verifying DNS
incomplete
5: CNAME Records
incomplete
6: Cleanup
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
When you update a DNS record, the change doesn't appear everywhere immediately. DNS is eventually consistent and heavily cached.
"Eventually consistent" means changes are applied, but not everywhere at once. It takes time to propagate.
When creating DNS records, you'll notice a field called TTL (Time To Live). This tells resolvers how often to re-check a record. If our records change often, clients need a lower TTL.
The trade-off is always the same: lower TTL means faster updates but more queries (and more cost). Higher TTL means slower updates but fewer queries.
Cost check: Route 53 charges about $0.40 per million queries for the first 1 billion. Lower TTLs mean more queries; for learning, cost is negligible.
When the client has to double-check DNS (due to lower TTL) the site will load a bit slower for them, and you have to pay for the extra queries.
When you update a DNS record in Route 53:
This is part of why the meme "It's always DNS" exists. If you submit a typo in your DNS record, you'll have to wait for the TTL to expire before your customers start getting the correct address. I once watched a team spend hours debugging why their new server wasn't getting traffic, only to realize they had a typo in the IP address, and even after fixing it, they still had to wait for TTL expiry.