How DNS Resolution Works, Step by Step
Follow a single browser request through the full DNS lookup chain, from your local cache to the root servers and back.

When you type a domain name into your browser, a remarkable chain of lookups happens in a fraction of a second. DNS — the Domain Name System — is the phonebook that turns human-friendly names into IP addresses. Here is the whole journey.
Image

The lookup chain
When you request example.com, the resolver walks through several sources in order
until it finds an answer:
- Browser and OS cache — recent lookups are remembered locally.
- Recursive resolver — usually your ISP or a public service like
1.1.1.1. - Root servers — point to the right top-level domain (
.com). - TLD servers — point to the authoritative servers for the domain.
- Authoritative servers — return the actual record.
This is why DNS is described as a distributed, hierarchical database. No single server holds everything.
Browser cache -> OS cache -> Recursive resolver
-> Root server -> TLD server -> Authoritative server
Common record types
Different records serve different purposes:
- A — maps a name to an IPv4 address.
- AAAA — maps a name to an IPv6 address.
- CNAME — an alias for another name.
- MX — mail servers for the domain.
- TXT — arbitrary text, often used for verification.
Caching and TTL
Every DNS record carries a Time To Live (TTL) value, measured in seconds, that says how long a resolver may cache the answer. Low TTLs mean faster changes but more queries; high TTLs are faster but slower to update.
If a record changes but the old value is still cached, clients keep seeing the stale answer until the TTL expires. That single fact explains most “it works on my machine” DNS mysteries.
Newsletter
Learn with me
Join the newsletter to receive my latest articles. No spam, unsubscribe anytime.
You'll get a confirmation email. Check your inbox to complete your subscription.
About the author

Abdullah Islam
Abdullah Islam is a computer networking learner, tech blogger, and enthusiast who shares simple, practical guides to help others understand networking concepts and build real-world skills.
Comments
Similar posts
More articles on related topics.
Understanding IP Addressing and Subnetting
A practical, from-scratch guide to IPv4 addresses, subnet masks and CIDR — with worked examples you can follow along.
TCP vs UDP: Choosing the Right Protocol
A clear comparison of the two core transport protocols — reliability versus speed — and when to reach for each one.