The Domain Name System
Nobody types 203.0.113.40 to open a link; they type hop.example. Computers, however, connect to numbers. The Domain Name System (DNS) is the internet's phone book that turns one into the other — and it is the first step of every single request Hop receives.
The rule
Ask down the chain once, then trust the cache until TTL.
When a browser needs hop.example, it checks its own cache, then the operating system's. If neither knows, it asks a recursive resolver (usually run by the internet provider or a public service), which walks the chain for it:
- Root servers — "for
.example, ask these servers". - TLD servers for
.example— "forhop.example, ask Hop's name servers". - Authoritative name servers for
hop.example— "it is203.0.113.40".
Each answer carries a TTL (time to live) in seconds. Every cache along the way keeps the answer until the TTL runs out, so the next visitor skips the whole walk.
Common record types:
| Record | Maps a name to |
|---|---|
| A | an IPv4 address |
| AAAA | an IPv6 address |
| CNAME | another name (an alias) |
| NS | the name servers for the domain |
| MX | the mail servers for the domain |
Managed DNS services can also do routing: return different addresses by weight (send 10% to a new server), by the user's location, or only to servers that pass health checks.
The shortcut
Every TTL is a trade: long TTL = fast lookups, slow changes; short TTL = quick changes, more lookups. Before any change of address, shrink the TTL first.
See the problem
The A record has a TTL of one day. Change it now and some users hit the old server for up to 24 hours.
The trap is forgetting that you control only your authoritative servers. Caches around the world keep old answers until the TTL they were given runs out — you cannot flush them.
Drills
Answer fast — trust the rule.
Which record maps hop.example to an IPv4 address?
Which server gives the final, official answer for hop.example?
What does a record's TTL control?
You must change Hop's IP address next week. What should you do first?
Which record would make go.hop.example an alias of hop.example?
Remember
- Ask down the chain once — root, TLD, authoritative — then trust the cache until TTL.
- Shortcut: long TTL = fast lookups, slow changes; shrink it before any move.
- Trap: you cannot flush other people's caches; they keep old answers until the TTL runs out.
