DNS delegation is the mechanism a parent zone uses to hand authority for a child zone to a different set of name servers. It works through NS records published in the parent, plus glue address records when those name servers live inside the zone they serve. To check it, compare what the parent zone publishes with what every child name server answers authoritatively: if the NS sets, glue, and SOA responses agree, the handoff is sound.

Most broken handoffs stay invisible until a resolver with a cold cache follows the parent’s referral to a server that no longer answers. At PacketTools, the same parent-versus-child comparison runs in production when verifying VPNs and analyzing routing. Once you can read a referral, you can separate a real delegation fault from a stale cache in a few minutes.
How Does a Parent Zone Hand Authority to a Child Zone?

A parent zone hands authority to a child by publishing NS records at the child’s name, which turns that point into a boundary called a zone cut. Resolvers walk these cuts from the root down, and you decide where new cuts belong when you split subdomains off into their own zones.
What Changes at a Zone Cut?
The DNS namespace is a tree of names, but DNS zones are the administrative slices of that tree. A zone starts at a delegation point and covers every name below it until another delegation appears. RFC 8499 (and its successor, RFC 9499) uses the term “zone cut” for that boundary.
At the cut, three things change:
- The parent stops answering for names below it. It keeps only the NS records (and any glue) pointing to the child.
- The child zone holds the real data. Its apex carries its own SOA record and its own authoritative NS records.
- Responsibility moves. Whoever runs the child’s authoritative name servers now controls every record under that name.
That last point is why domain delegation is an ownership decision as much as a technical one. Once dev.example.org is delegated, an edit to dev.example.org in the parent zone does nothing, because resolvers never read it.
How Does a Recursive Resolver Follow Referrals?
A recursive resolver starts at the root zone and follows referrals downward until a server answers with authority. Every resolver ships with the root server addresses, and there are 13 root servers, each with one IPv4 and one IPv6 address, served by anycast from many locations.
For www.example.org, the walk looks like this:
- The root servers return a referral to the
orgname servers. - The
orgservers return a referral to theexample.orgname servers. - An
example.orgserver returns the A, AAAA, or CNAME answer with the authoritative (AA) flag set.
A referral has an empty answer section, the child’s NS records in the authority section, and glue in the additional section. Resolvers cache each NS set for its TTL, so later DNS queries skip straight to the child servers. That caching is what makes delegation cheap in normal operation, and it is also what makes broken delegation look intermittent.
When Does a Subdomain Need Its Own Zone?
Subdomains live inside the parent zone by default. You need a separate zone (and a delegation) when another party must control the records independently.
Common reasons to create a child zone:
- A different team or business unit manages the names, such as
corp.example.orgfor internal services. - A third-party platform hosts the service and runs its own DNS.
- The subdomain needs separate DNSSEC signing or a different provider.
- You want a provider outage or a bad edit contained to one branch of the namespace.
If a subdomain only needs a handful of records that your team already maintains, keep it in the parent zone. Every extra cut adds another NS set, another place for drift, and another dependency to monitor.
What Do NS Records and Glue Actually Do?
NS records name the servers responsible for a zone, and glue records supply those servers’ addresses when the names cannot be resolved any other way. Each delegation carries two NS sets that should match, and glue is mandatory only when a server’s name sits inside the delegated zone.
Parent Delegation Records vs. Authoritative Child NS Records
Every delegated zone has its NS records published twice. Microsoft’s Azure DNS documentation describes two copies of the NS records: one in the parent pointing to the child, and the authoritative set at the child zone’s apex.
| Parent delegation NS set | Child authoritative NS set | |
|---|---|---|
| Lives in | Parent zone (TLD or your own zone) | Child zone apex |
| Authoritative? | No, it is a referral | Yes, AA flag set |
| Who edits it | Registrar/registry or parent zone admin | Child zone’s DNS provider |
| TTL set by | Registry or parent admin | You |
Under RFC 2181 data ranking, a resolver that sees both sets prefers the child’s authoritative copy. Some resolvers keep using the parent’s set anyway, so a mismatch sends different users to different servers. Keep the two sets identical. Each entry must be a fully qualified domain name (FQDN) that resolves to a live DNS name server; an NS record cannot hold an IP address or point to a CNAME.
When Are Glue Records Required?
Glue is required when the name server’s hostname falls inside the zone being delegated. If example.org uses ns1.example.org, a resolver cannot look up ns1.example.org without first reaching the example.org servers. The parent breaks that loop by publishing A records and AAAA records for the server alongside the referral.
| Name server for example.org | Relationship | Glue |
|---|---|---|
ns1.example.org |
In-domain | Required |
ns1.example-dns.org |
Sibling (same parent, different zone) | Optional |
ns1.example.net |
Out-of-zone | Not used |
RFC 9471 requires authoritative servers to include all available in-domain glue and set the TC flag when it does not fit in a UDP response. For registered domains, glue lives at the registry as “host records” or “child name servers,” and that copy is separate from the A record in your own zone. Renumber a server and forget the registrar glue, and resolvers starting from the parent keep receiving the old address.
An Annotated example.org Parent-and-Child Example
The reserved domain example.org shows both halves cleanly. The parent org zone holds the delegation and glue:
; In the org. zone (parent): referral data, not authoritative
example.org. 86400 IN NS ns1.example.org.
example.org. 86400 IN NS ns2.example.org.
ns1.example.org. 86400 IN A 192.0.2.53 ; glue
ns2.example.org. 86400 IN A 198.51.100.53 ; glue
ns2.example.org. 86400 IN AAAA 2001:db8::53 ; glue
The child zone holds the SOA record, the matching NS set, and the real address records:
; In the example.org. zone (child): authoritative data
example.org. 3600 IN SOA ns1.example.org. hostmaster.example.org. (
2026110701 7200 900 1209600 300 )
example.org. 86400 IN NS ns1.example.org.
example.org. 86400 IN NS ns2.example.org.
ns1 86400 IN A 192.0.2.53
ns2 86400 IN A 198.51.100.53
ns2 86400 IN AAAA 2001:db8::53
www 3600 IN A 192.0.2.80
Notice that the glue addresses match the child’s own A and AAAA records exactly. When those two diverge, you have stale glue, one of the hardest faults to spot from a single resolver. The full set of DNS record types used here (SOA, NS, A, AAAA) follow the same syntax in any BIND-style zone file.
How Do You Set Up or Change Delegation Safely?
Safe delegation means the child zone answers correctly before the parent ever points to it, and the old servers keep answering until every cached referral expires. Order your steps around TTLs and DNSSEC, and name a person responsible for each side.
Create and Test the Child Zone Before Publishing the Referral
Build the complete child zone on the new authoritative DNS server first. That includes the SOA, the apex NS set, every DNS record users depend on, and A/AAAA records for any in-domain name servers.
Then query each new server directly with recursion off:
dig +norecurse @ns1.newprovider.example example.org SOA
dig +norecurse @ns1.newprovider.example www.example.org A
Look for aa in the flags line and the answers you expect. If the server returns REFUSED or answers without aa, publishing the referral now creates a lame delegation on day one. Export the old zone and diff record by record; missing TXT records for mail authentication are the most common casualty of a provider move.
Where Do You Update Registrar Settings or Parent-Zone NS Records?
Where you make the change depends on what the parent is:
- Registered domain (parent is a TLD): you never edit the TLD zone. You change the name server list at your registrar, which passes it to the registry. In-domain servers also need host records with IP addresses.
- Subdomain in your own zone: add the NS records (and glue, if in-domain) to the parent zone at whatever DNS provider hosts it, such as Cloudflare or a Windows DNS server.
Registry updates often run as scheduled batch jobs, so the parent may not reflect your change immediately. Confirm the parent’s view directly before assuming anything has propagated. A DNS propagation checker shows how resolvers in different regions are picking up the new NS set as caches expire.
Coordinate DNSSEC, TTLs, and Old-Provider Overlap
DNSSEC adds a third record to the handoff: the DS record in the parent, which must match a DNSKEY in the child. Moving a signed zone between providers without coordinating keys breaks validation for every validating resolver.
A safe sequence for a signed zone:
- Get the new provider signing the zone and publishing its DNSKEY.
- Add the new provider’s DS at the parent (or pre-publish keys per the providers’ multi-signer process).
- Switch the NS records at the registrar.
- Remove the old DS only after the old NS set has aged out of caches.
For TTLs, a delegation NS TTL of one day is common, with values under one hour not recommended (the root-server citation above already credits that page, so treat this as the same guidance). The parent’s NS TTL is set by the registry and decides how long resolvers keep sending queries to the old servers. Keep the old provider serving an identical zone for at least that period, plus a margin. Two to three days of overlap is a practical floor for most TLDs.
Choose Resilient Authoritative Servers and Assign Ownership
Run at least two authoritative servers on separate networks, and four is a common target for production domains. Secondary DNS from a second provider protects you from a single provider outage, provided both serve identical data through zone transfers or synchronized APIs.
Out-of-zone name servers from a managed provider avoid glue entirely, which removes one class of drift. They also help DNS performance, because busy resolvers already have those provider hostnames cached.
Assign a named domain admin for the registrar account and for each DNS provider. Delegation failures often trace back to a server decommissioned by one team while another team still lists it at the registrar. Record the parent NS set, glue, and DS values in your change log so the next person can verify them against reality.
How Can You Verify the Parent and Child Agree?

Verification comes down to asking the parent what it delegates, asking every child server what it claims, and comparing the two. A trace shows the path, direct queries show each side’s data, and an outside view confirms what the public internet sees.
Trace the Referral Path With dig +trace
Start with a trace to see every referral from the root to your zone:
dig +trace +nodnssec www.example.org A
A trace bypasses your local resolver’s cache and policy after the initial root discovery, so it reflects what the authoritative servers publish right now. Read each block of NS records together with the Received ... from line below it. That line tells you which server handed out that referral.
You want three things from the output:
- The TLD block lists exactly the name servers you configured at the registrar.
- The final answer comes from one of those servers.
- No step hangs or times out before the answer.
Drop +nodnssec when you need to see DS and RRSIG records at each level.
Query the Parent Directly for Delegated NS Records and Glue
Next, ask a parent server for the delegation with recursion off. For a .org domain, find the parent servers first, then query one:
dig +short org NS
dig +norecurse +noall +authority +additional example.org NS @<org-server>
The response should carry no aa flag and zero answers. The authority section holds the delegated NS set, and the additional section holds glue. Write both down.
Check every glue address against the child’s own A and AAAA records. A glue IP that points to a retired server is more than a reliability problem; leftover glue records can be targeted to hijack a zone, so remove any entry you no longer control.
Query Every Child Server for Authoritative NS and SOA Responses
Now query each server listed by the parent, by name and by glue address if they differ:
for ns in ns1.example.org ns2.example.org; do
dig +norecurse +noall +comments +answer example.org SOA @$ns | grep -E 'flags|SOA'
dig +norecurse +short example.org NS @$ns
done
Every server should return aa in its flags, the same NS set the parent published, and matching SOA serials if they share a primary/secondary transfer setup. Independent primaries can use different serial schemes, so compare the record sets themselves in that case.
Use this comparison grid to interpret results:
| Parent says | Child says | Meaning |
|---|---|---|
| ns1, ns2 | ns1, ns2 (aa) | Healthy delegation |
| ns1, ns2, ns3 | ns1, ns2 | ns3 likely retired but still delegated |
| ns1, ns2 | ns1, ns2, ns3 | Child added a server never registered at the parent |
| ns1, ns2 | REFUSED or no aa | Lame delegation |
Cross-Check Public Results With PacketTools DNS Tools
Your workstation sees DNS through one network path. PacketTools’ DNS Lookup gives you an outside view of the same NS and SOA records from the browser, with no sign-in and no logging of queries or IPs.
When a change is in flight, the DNS Propagation Checker shows which resolvers still hold the old NS set. If you also need mail and certificate checks for the same domain, the SuperTool runs DNS, MX, SPF, DKIM, DMARC, blacklist, and SSL tests in one pass. Compare those public results with your direct dig output: when the authoritative servers agree but public resolvers differ, you are looking at caching, which the next section separates from a real fault.
Is the Failure in Delegation or Recursive Caching?
Authoritative queries decide it: if the parent and every child server answer correctly with recursion off, delegation is fine and any remaining failure lives in resolver caches or in the records themselves. Lame servers, stale glue, mismatched NS sets, and DS errors are delegation faults; old answers held by DNS resolvers are caching.
Identify Lame Delegation, Unreachable Servers, and Stale Glue
A lame delegation happens when a server listed in the parent does not serve the zone. You will see one of these responses from a direct query:
- REFUSED: the server exists but has no zone configured for your domain, typical after a provider change.
- Answer without
aa: the server is replying from cache or forwarding. - Timeout: the host is down, firewalled, or the address is wrong.
A timeout alone proves only that your path got no reply, so test from a second network before declaring the server dead. Stale glue shows up as a mismatch between the address in the parent’s additional section and the child’s own A record. Users whose resolvers started from the parent hit the old IP, while others reach the new one, which is why stale glue produces the classic “works for me” ticket. Lame servers also add latency, since every resolver that picks one waits through retries before trying a sibling. A DNS server not responding error on clients is often the visible end of this.
Separate Parent-Child Mismatches From Cached Referrals
Run the parent and child queries from the previous section first. If they disagree, you have a mismatch to fix at the registrar or the child provider, and no amount of cache flushing will help.
If they agree, the fault sits in recursive caching. Check the TTL a public recursive resolver returns for the NS set:
dig @<public-resolver> example.org NS +noall +answer
A TTL counting down toward zero tells you how long that resolver will keep the old referral. You can flush your own resolvers; you cannot flush anyone else’s, which is why the overlap period on the old provider protects users. Local DNS settings pointing at a different resolver will also show a different answer, so note which resolver each test used.
Distinguish NXDOMAIN and CNAME Problems From Broken Delegation
NXDOMAIN means a server with authority said the name does not exist. If that answer arrives with aa from a server your parent lists, delegation is working and the record is simply missing from the zone. Add it at the correct provider; after a migration, check that you edited the new provider and not the old one.
NXDOMAIN from a server that should not hold the zone points back to delegation. Browser errors like DNS_PROBE_FINISHED_NXDOMAIN look identical in both cases, so the authoritative query is what separates them.
A CNAME record adds a second lookup that may cross into another zone entirely. If www.example.org is a CNAME to a target under a different domain, a failure can come from the target zone’s delegation. Trace the target name separately before touching your own NS records.
Check DNSSEC Handoffs Without Expanding Into General SERVFAIL Triage
For delegation purposes, the DNSSEC check is narrow: does the DS in the parent match a DNSKEY the child publishes? Query both and compare key tags:
dig +norecurse example.org DS @<org-server>
dig +norecurse example.org DNSKEY @ns1.example.org +multi
A DS with no matching DNSKEY causes SERVFAIL from validating resolvers while non-validating resolvers resolve fine. That split behavior is the signature of a broken DNSSEC handoff, common after a provider move where the old DS was left at the registrar.
If the DS matches and the delegation checks pass, the SERVFAIL comes from somewhere else, such as expired signatures, server errors, or resolver policy. Those causes belong to broader work to troubleshoot DNS issues and sit outside the delegation check.
Trust Delegation Only After Checking Both Sides
A delegation is healthy only when the parent zone and the child zone tell the same story. The parent’s NS set and glue must point to servers that answer with authority, and the child’s apex NS set and SOA must match what the parent publishes.
Build the child zone before publishing the referral, keep old authoritative name servers answering until the parent’s NS TTL has passed, and coordinate DS changes with any provider move. When something breaks, query the parent and each child server with recursion off before blaming caches. If both sides agree, the remaining problem is a stale referral in a resolver, and the TTL you read from that resolver tells you exactly how long it will last.

Leave a Reply