The Backbone: Root Servers, TLDs, and Authoritative Name Servers
When you type a domain name into a browser, your computer doesn't magically know where that site lives. It asks a series of questions, moving step by step through the DNS hierarchy until it reaches the server that actually has the answer.
This hierarchy exists to keep DNS scalable, reliable, and fast-and it's built around three core layers.
Root Servers: The Starting Point
At the very top of the DNS hierarchy are the root servers. These servers don't know the IP address of every website, and they aren't meant to. Their job is much simpler and far more important: Root servers know where to find the Top-Level Domain (TLD) servers.
When a resolver asks, "Where is bbtechtools.com? the root server doesn't reply with an IP address. Instead, it responds with guidance: "I don't know that domain, but I know who handles .com.
There are only 13 logical root server systems (labeled A through M), but each one is backed by hundreds of physical servers spread across the globe using Anycast routing. This design ensures resilience, speed, and protection against outages or attacks. Root servers are the Internet's table of contents, not the encyclopedia itself.
TLD Servers: Narrowing the Search
Once the resolver knows which Top-Level Domain it's dealing with-such as .com, .org, .net, or country codes like .us or .uk-it moves on to the TLD servers.
TLD servers are responsible for managing entire categories of domains, not individual websites. They don't store records for bbtechtools.com, but they do know which authoritative name servers are responsible for that domain. In other words, TLD servers answer the question: "Who is authoritative for this domain name? This layer allows millions of domains to exist under a single TLD without overwhelming any one system.
Authoritative Name Servers: The Source of Truth
At the bottom of the hierarchy-but the most important from a practical standpoint-are the authoritative name servers. These servers hold the actual DNS records for a domain. When a resolver finally reaches an authoritative server, it receives the definitive answer it's been looking for: IP addresses, Mail servers, Security policies, and Service locations.
If DNS were a court system, authoritative servers are where the final ruling comes from. Domain owners control their authoritative name servers, either by running them directly or by delegating that responsibility to hosting providers, cloud platforms, or DNS services.
Recursive vs. Iterative: Who Does the Legwork?
Every DNS lookup is a chain of questions. The two query types describe who is responsible for finding the final answer at each link in that chain.
- Recursive query ("find it for me"): the asker wants the final answer, not a hint. The server that receives it must either answer from its cache or go find the answer itself, then hand back the IP address (or an error saying the name does not exist). Your laptop sends this kind of query to its configured DNS resolver.
- Iterative query ("tell me who to ask next"): the asker accepts a referral. The server answers with the best information it has, usually "I don't know that name, but this other server is responsible for that part." The asker then asks the next server itself. Your resolver uses this kind of query when it talks to root, TLD and authoritative servers.
Think of a hotel front desk. You (the client) ask the concierge to book a dinner table and call you back. That is recursive: you wait, and the concierge does all the calling. The concierge phones a restaurant guide, which says "try the downtown district office." The district office says "call Luigi's directly." Each of those calls is iterative: every stop just points to the next one, and the concierge keeps dialing.
Walkthrough: resolving www.example.com
- Recursive: your laptop asks its resolver (often your router or the company's DNS server) for www.example.com and waits.
- The resolver checks its cache. If a fresh answer is there, it replies right away and the lookup ends.
- Iterative: the resolver asks a root server. The root does not know the address but refers it to the .com TLD servers.
- Iterative: the resolver asks a .com TLD server, which refers it to example.com's authoritative name servers.
- Iterative: the resolver asks the authoritative server, which owns the zone and returns the actual A record (the IP address).
- The resolver caches that answer for its TTL (time to live) and finally sends it back to your laptop, completing the recursive request from step 1.
| Recursive | Iterative |
| Who usually asks | Clients (stub resolvers on PCs and phones) | Resolvers talking to root, TLD and authoritative servers |
| Who does the work | The server that received the query | The asker, one hop at a time |
| What comes back | The final answer or an error (such as NXDOMAIN, "no such domain") | The answer if known, otherwise a referral to the next server |
| Troubleshooting tie-in | If the resolver is down or wrong, every lookup on the device fails | nslookup with a specific server, or dig +trace, walks the referrals hop by hop |
Exam tip: clients send recursive queries to their resolver; the resolver sends iterative queries out to the DNS hierarchy. Use the Recursive and Iterative buttons in the trace simulator below to watch both paths.