Skip to content
Lesson: How DNS finds an address, one server at a timeSwitch
← How a network works

Lesson 5 of 6 · OSI Layer 7 (over UDP or TCP port 53)

How DNS finds an address, one server at a time

Your laptop does not walk the DNS tree itself. It asks a recursive resolver, which asks the root, then the top-level domain servers, then the authoritative server that holds the answer, and remembers the result for a while.

A recursive DNS lookup

Watch the resolver follow referrals until it has the answer.

LAPTOPasks onceRESOLVERrecursive, cachesROOTrefers to .com.COM TLDrefers to example.comAUTHORITATIVEexample.com
UDP 53 · query: www.example.com A · recursion desired

STEP 01 / 05

The laptop hands the question off

The laptop sends one query to its configured resolver: what is the A record for www.example.com? It asks for recursion, meaning the resolver should do the legwork.

Resolver cache

Empty

Simplified: real lookups may skip steps the resolver already has cached, and DNSSEC adds signatures.

Check your understanding

How DNS finds an address, one server at a time

All 1 sections · no timer

Unlimited retries

Questions from every section are combined into one assessment. Answer them all correctly to complete the article.

Your completion saves in this browser. Sign in to sync it to your account.