TECH

What Is DNS? How Your Browser Finds Any Website

Updated: 9 min read 53 Views 0 Comments

You type a web address, press Enter, and a page appears a moment later. In between, your device had to solve a small puzzle. Computers reach each other by number, and you just handed it a name.

So, what is DNS? It’s the Domain Name System, the worldwide service that turns names like example.com into the IP addresses machines actually use. Most explainers call it the internet’s phone book. That’s a fair start, but it hides the interesting part: there’s no single book. This guide walks through what DNS is really made of and who answers each question along the way. It also explains why one stale answer can make a site look “down” for you and fine for your friend.

What Is DNS, and Why Is “Phone Book” Only Half the Picture?

The phone-book comparison, used by sites from Engadget to TechRadar, gets one thing right. DNS maps names to numbers. Where it goes wrong is the picture of one directory sitting on one machine somewhere.

RFC 1034, the 1987 specification that still defines the basics, divides the name space into zones. Each zone is run by whoever is responsible for that slice of names, and the RFC says every zone must be available from at least two servers. No single server holds every record.

A better picture is a chain of offices that each know one thing: who to ask next. Ask the first office about a company and it won’t give you an address. It points you to the office that handles that kind of name, and so on, until you reach the one that actually has the answer.

DNS also does more than find websites. RFC 1034 describes it as a system for host address look-up and for forwarding email, and that second job matters more than people expect. The design goes back to the early 1980s, a story we cover separately in our piece on who invented DNS.

Who Answers When You Type a Web Address?

Cloudflare’s learning center says all DNS servers fall into four categories: recursive resolvers, root nameservers, TLD nameservers, and authoritative nameservers. Each has one narrow job:

  • Recursive resolver: the first stop. It answers from its cache if it can, or it goes asking on your behalf. Most people use the one their ISP provides, though you can pick another, such as Cloudflare’s 1.1.1.1 or Google’s 8.8.8.8.
  • Root nameserver: looks at the end of the name (.com, .net, .org) and points the resolver to the matching TLD server.
  • TLD nameserver: keeps the information for every name that shares an extension, such as .com.
  • Authoritative nameserver: the last stop, holding the actual records for a domain.

Where does your own device fit? RFC 1034 calls it a stub resolver. It doesn’t climb the hierarchy itself. It hands the work to a recursive server named in its configuration.

Think of the recursive resolver as a receptionist who makes calls for you. You say “get me accounting at Acme.” She rings the switchboard, then Acme’s operator, then accounting, and you only hear the final answer.

A DNS Lookup, Step by Step

Diagram of a DNS lookup from browser to resolver, root, TLD and authoritative server, with a cache shortcut

Here’s the path for example.com when nothing is cached, following Cloudflare’s walkthrough:

  1. You type example.com, and the query reaches a recursive resolver.
  2. With no cached answer, the resolver asks a root nameserver.
  3. The root doesn’t know the site’s address. It replies with a referral to the .com TLD servers.
  4. The resolver asks the .com TLD server, which points to the domain’s authoritative nameserver.
  5. The resolver asks that authoritative nameserver, which returns the IP address.
  6. The resolver hands the IP to your browser and keeps a copy in its cache.
  7. Your browser connects to that address and loads the page.

That “referral” in step 3 is the detail most diagrams blur. Under RFC 1034, a name server that isn’t answering recursively returns either an answer, an error, or a referral to a server closer to the answer. The root server never says “here’s the site.” It says “ask them.”

The whole trip usually finishes in milliseconds, and the queries travel on port 53 over UDP or TCP.

Why Doesn’t Your Browser Repeat All That Every Time?

Because of caching. Every record carries a TTL, which RFC 1034 defines as a 32-bit count of seconds saying how long the record may be kept before it’s discarded. A TTL of zero means don’t cache at all. Copies get stored at several levels, including your device, your local network, and DNS servers.

This explains a word you’ll hear constantly: “propagation.” Nothing is actually pushed across the internet when a site changes its address. Old answers just sit in caches until their TTL runs out. A visitor whose resolver cached the old address an hour ago may keep seeing the old site, while someone on a different resolver gets the new one right away.

That’s also the most common reason a site loads for your friend and not for you. You’re probably asking different resolvers, and they’re holding different copies. Site owners who plan a move often lower the TTL beforehand so old copies expire sooner. That’s common practice rather than a rule, but it follows directly from how the timer works.

What Is DNS Made Of? Records You’ll Actually See

A zone is just a set of records. A handful of types do most of the work:

RecordWhat it doesWhere you’ll see it
AMaps a name to an IPv4 addressA website’s main address
AAAAMaps a name to an IPv6 addressThe same site on the newer address format
CNAMEPoints one name at another namewww pointing to the main domain
MXSays where a domain’s email should goEvery business inbox
TXTHolds free text, including email-authentication dataSPF records
NSNames the authoritative servers for a zoneHanding a domain to a DNS host

The first four types are standard in most DNS guides, and RFC 1034 notes that when a response contains a CNAME, the resolver restarts its search at the canonical name. MX records came from Craig Partridge’s RFC 974 in January 1986, and within roughly two years, email addresses had largely settled into the user@domain form. SPF, the record that says which servers may send mail for a domain, is published as a TXT record.

What the Numbers Say

Scale is the best argument that the design works. Verisign’s Domain Name Industry Brief reports that the third quarter of 2026 closed with 411.6 million domain name registrations across all top-level domains, up 33.0 million in a year. The .com base alone totaled 169.8 million on September 30, 2026. ISI’s own account describes millions of servers and tens of billions of names, which is a bigger number because names include far more than registered domains.

The top of the hierarchy has its own misconception. People say “13 root servers,” but ICANN has a blog post titled “There are not 13 root servers”. There are 13 root server identities run by 12 operators, and each identity is spread across many machines. The root-servers.org homepage showed 1,843 instances as of April 26, 2024, and one 2026 explainer, citing the live count, reports 2,003 on August 11, 2026. The 13 figure dates to the 1990s. By 1995 the nine existing servers had letter names, and four more were added in 1997. At that point the same servers also handled .com, .net and .org, and that load limited how many identities there could be.

Is DNS Private or Safe?

If you’ve been wondering what DNS does with your browsing history, the honest answer depends on which risk you’re worried about. Classic DNS queries travel without encryption, which is the privacy gap. Cache poisoning is the safety gap: an attacker feeds a resolver a false answer, and users get diverted to malicious sites.

Two fixes exist. DNS over HTTPS, defined in RFC 8484 in October 2018, sends queries inside normal HTTPS traffic, and Firefox switched to it by default for US users in February 2020. DNS over TLS does something similar, and DigiCert groups the two as the encrypted options. DNSSEC, added later, addresses forged answers rather than eavesdropping.

There’s a tradeoff here, and it’s my read rather than a rule. Encrypted queries are great for someone on café Wi-Fi who doesn’t want the network watching. The same feature is a headache for a company that wants to see and filter what its own network is looking up. Neither side is wrong. They want different things from the same system.

When DNS Breaks: One Empty Record

In October 2025, a DNS problem showed how much rides on a single record. AWS’s post-incident summary says a latent race condition in the DynamoDB DNS management system left an empty DNS record for the service’s regional endpoint in us-east-1. The disruption ran from 11:48 PM PDT on October 19 to 2:20 PM PDT on October 20.

InfoQ’s analysis makes a useful point: the DNS failure was the first symptom, not the root cause. The real fault was in the automation that manages the records. AWS says all DNS information was restored by 2:25 AM PDT, and customers’ cached records expired between 2:25 and 2:40 AM, which finished recovery from the first disruption. That’s the TTL timer from earlier, working in real life.

Nothing was wrong with anyone’s browser. The name simply stopped pointing anywhere.

Try It Yourself: Two Commands

You can watch DNS work from your own computer. In a terminal or command prompt, run:

nslookup example.com
dig example.com

Both show which resolver answered and the address it returned, and dig also shows the TTL counting down. Run the command twice a minute apart and you can see a cached answer age.

Bottom Line

Illustration of a terminal window with one line circled next to a countdown stopwatch, representing a DNS TTL value

So, what is DNS? It’s a chain of servers that each know one thing, plus a cache that stops them from being asked the same question twice. When it works, you never notice it. When it fails, even a single empty record can take a lot of the internet with it. Next, read how businesses use DNS every day, from email delivery to traffic routing, and how it all started with the story of who invented DNS.


FAQs

Is DNS the same thing as an IP address?

No. An IP address is the destination. DNS is the lookup that finds it from a name.

Can I change my DNS server?

Yes. Your device uses whichever resolver it’s configured with, and you can point it at a public one. Whether it feels faster varies by network, so test rather than assume.

Why can a site work for a friend but not for me?

Usually different resolvers holding different cached copies, though a problem with the site itself is also possible.

What is DNS used for besides websites?

Email delivery depends on MX records, and DNS also carries the records that prove an email really came from your domain.

Written by

For 4 years, Isabella's bedtime routine was the same: one more tech article, then another. Somewhere along the way, reading turned into explaining, and now she writes the clear, simple guides she once searched for.

View all posts by Isabella Mae →

Leave a Reply

Your email address will not be published. Required fields are marked *