← Back to Learning Hub

Advanced DNS Features • Advanced • 8 min read

How DNS Delegation Works: Tracing From Root to Your Nameservers

A recursive trace shows how a lookup walks from the root to your domain's nameservers. Learn to read delegation, glue records, and lame delegation.

When you look up a domain, the answer is not stored in one place, it is discovered by walking down a chain of authority that starts at the root of DNS. Understanding that walk, called delegation, is what turns "DNS is broken" into "the delegation for this domain is inconsistent, here is the exact hop that is wrong."

The chain of authority

A recursive trace follows the delegation step by step:

  1. Root servers (.) do not know your domain, but they know who runs each top-level domain. They point to the TLD servers for .com, .org, your ccTLD, and so on.
  2. TLD servers (for example the .com servers) do not hold your records either, but they hold the delegation: the NS records naming your domain's authoritative nameservers.
  3. Your authoritative nameservers hold the real answers, the A, MX, TXT, and other records for your zone.

Each level only knows enough to point at the next one. A recursive resolver repeats this walk (and caches each step) so that most lookups never touch the root at all. Our nameserver trace tool performs this walk for a domain and shows the delegation at each level.

Glue records: solving the chicken-and-egg problem

If your nameservers live inside the domain they serve, for example ns1.example.com is authoritative for example.com, there is a bootstrapping problem: to find example.com you need ns1.example.com, but to find ns1.example.com you need example.com. Glue records break the loop: the parent (.com) publishes the IP addresses of those in-zone nameservers directly in the delegation, so a resolver can reach them without a circular lookup. Missing glue is a classic cause of intermittent, hard-to-reproduce resolution failures.

What to look for in a trace

  • Parent vs child NS agreement. The NS records the TLD hands out (the parent side) should match the NS records your own nameservers publish at the zone apex (the child side). A mismatch means a stale delegation.
  • Lame delegation. A nameserver is listed in the delegation but does not actually answer authoritatively for the zone. Every listed server should respond with an authoritative answer.
  • All nameservers reachable and consistent. If two of your four nameservers return different data, some users get stale answers depending on which one their resolver picked.
  • SOA consistency. All authoritative servers for a zone should serve the same SOA serial once changes have propagated between them.

Why this matters for troubleshooting

Most "my change is not showing up" problems are really delegation or propagation problems. If the parent still points at your old DNS provider, no amount of editing records at the new provider will help, resolvers never reach the new servers. A trace makes that obvious at a glance: you see the delegation pointing to the wrong place.

# Walk the delegation yourself
dig +trace example.com

# Compare parent-side vs child-side NS
dig NS example.com @a.gtld-servers.net    # parent (example: .com server)
dig NS example.com                         # child (your nameservers)

FAQ

What is the difference between a recursive resolver and an authoritative server?

An authoritative server holds the real records for a zone. A recursive resolver holds none of its own, it walks the delegation chain (and caches the results) to find answers on your behalf.

I switched DNS providers but nothing changed. Why?

Almost always because the delegation at the registrar/TLD still names your old nameservers. Update the NS records at your registrar, then re-run a trace to confirm the parent points to the new provider.

What is a lame delegation?

A nameserver listed in the delegation that fails to answer authoritatively for the zone. It causes slow, intermittent lookups as resolvers wait on a server that will not help.

Related guides

How to Read a DNS Trace, Line by Line

A dig +trace or a nameserver trace prints one block per level of the delegation, and reading it in order is how you spot the exact hop that is wrong. Work from the top down.

  1. The root referral. The first block answers from a root server (.) and returns the NS records for your top-level domain, such as the .com servers. If this block is missing, your resolver could not reach the root, which points to a local network or firewall problem rather than a domain problem.
  2. The TLD referral. The next block comes from a TLD server and returns the NS records naming your authoritative nameservers. This is the parent-side delegation. If it still lists an old provider, stop here: no record edit at the new provider can matter until this line changes.
  3. Glue, if present. When your nameservers live inside your own domain, the TLD block also carries their IP addresses as additional records. Missing glue here causes intermittent failures.
  4. The authoritative answer. The final block comes from your own nameserver and returns the actual record you asked for. A trace that reaches this line with the right data means delegation is healthy end to end.

How do I trace DNS delegation?

Run dig +trace example.com from a terminal, or use the nameserver trace tool if you do not have dig installed. Read each referral in order and confirm the TLD block points to the nameservers you expect.

Why does my trace stop before reaching my nameservers?

The trace halts at the last level that answered. If it stops at the TLD block, the listed nameservers are not responding authoritatively, which is a lame delegation. If it stops at the root, the problem is your own network reaching DNS, not the domain itself.

Walk your own domain's delegation now with the nameserver trace tool and compare the TLD referral against the nameservers you expect to see.

Troubleshooting box

If results look inconsistent, compare authoritative nameservers first, then recursive resolvers by region. Capture snapshots every 10 minutes for deterministic incident timelines.

Try VallaDNS free →

Intermediate • 7 min

How to Check If DNSSEC Is Valid on a Domain

Enabling DNSSEC is not the same as validating. Check that the parent DS matches your DNSKEY, that RRSIGs verify, and read the AD flag to prove the chain works.

Intermediate • 6 min

How to Find a DNS Record's TTL (Current Value)

Find the TTL currently set on a DNS record: read the TTL column in dig and nslookup, tell the authoritative TTL from a resolver's countdown, and confirm a change.