Turn www.example.com into an address, starting from a resolver that knows nothing.
- question (qname)
- www.example.com
- type / class
- A / IN
- flags
- RD=1
- answer count
- 0
- ttl
- —
- transport
- udp / 53
Byte for byte the same in every query — the resolver never rewrites it.
An IPv4 address record. AAAA would ask for IPv6, MX for mail.
AA=0: not authoritative — expect a referral, not an address.
Zero so far. A referral carries authority records, not answers.
How long any resolver may cache this answer. Set by the zone owner.
One small datagram each way. Over 512 bytes and DNS retries over TCP.
Before any packet leaves, where is the closest place this name might already be stored?
No single machine knows where www.example.com lives. The name is split into labels, and each level of the tree knows only one thing: who to ask next. Four questions turn a name into an address.
The query does not travel root → TLD → authoritative like a relay. It returns to the resolver every single time. Root never talks to the TLD server; it just says go ask them.
Two query types in one lookup: PC-1 asks recursively (RD=1 — give me the final answer), and the resolver then asks iteratively (RD=0 — tell me what you know, I’ll do the walking). Only the resolver walks.
Turn www.example.com into an address, starting from a resolver that knows nothing.
- Who actually walks the tree (root → .com → authoritative)?
- What does the root server send back?
Read it now and keep it in mind — the answer is in what you are about to watch.