Picture a visitor who wants a particular book in a huge library. They ask the librarian (the recursive resolver). The librarian first checks a personal notebook. If the answer is not there, they go to the information desk at the entrance (the root), which says, “I don’t hold books, but the .ng section is that way.” At the .ng section desk (the TLD), they are told which shelf holds your domain. At the shelf (the authoritative server), they find the real answer and write it in the notebook for next time. That, in a nutshell, is a DNS lookup.

This shows the six stages:

  1. Stub resolver. The part of your device or browser that asks on the application’s behalf.
  2. Recursive resolver. Run by an ISP, an enterprise or a public provider. It does the legwork and holds the cache that matters.
  3. Root (.). It never gives the answer. It only points to the right TLD servers.
  4. TLD (.ng, .com). Also never the answer. It points to your authoritative servers.
  5. Authoritative server. It returns the record, along with the TTL that says how long the answer may be reused.
  6. Cached answer. The recursive resolver keeps it for the TTL, so the next person who asks gets it instantly.

The three boxes at the bottom are the strategic heart of the slide:

  • What you control: your own authoritative servers, your records, your TTLs, your delegation and the structure of your zone. This is where optimisation work lands.
  • What you influence: the behaviour of recursive resolvers. You set the policy through TTLs and record design, but someone else’s cache enforces it.
  • What you can only measure: which resolver the client chose, the network path, and the speed of the root and TLD. Design around these; you cannot change them.

KEY TAKEAWAY   The recursive resolver is the most important actor in the whole system, because its cache is where nearly all the speed in DNS is created or lost. You do not run it, and usually you do not even know which one your users sit behind. What you do control is the TTL you publish (an instruction to that cache) and the structure of your zone (how many round trips a cold lookup costs).

TRY IT YOURSELF   If you have the dig tool, run dig +trace followed by your domain name and label each stage you see. Then run a normal dig for the same name twice and compare the “Query time” shown each time. The first trace shows your real path length, and the two plain queries show what a warm cache is worth on your own domain. Add both to your plan.