Glue record

On this page 7

A glue record is an A or AAAA record for a name server that the parent zone publishes alongside an NS delegation, so that resolvers can reach a name server whose hostname lies inside the zone it serves. Among DNS records, glue is unusual because it is not authoritative data: the parent holds a copy of an address that formally belongs to the child zone, purely to break a circular dependency in name resolution on the Internet.

Without glue, a resolver asked to find shop.example.com would learn that example.com is served by ns1.example.com, yet it could only find the address of ns1.example.com by asking that same server. Glue records supply the missing address in the additional section of the referral, which lets the lookup continue.

How glue records break the delegation loop

Glue records work by attaching name server addresses to a referral sent from the parent zone to a resolver. When a top-level domain server answers a query for a name under example.com, it returns the NS records in the authority section and, where needed, the matching A and AAAA records in the additional section.

The resolver then contacts the listed address directly. The child zone must also publish the same NS and address records, because the copy in the child is the authoritative version; the parent copy is only a delegation hint. Modern resolvers treat glue as low-trust data and, after reaching the child, prefer the child’s own records for caching.

The following table traces a typical resolution path for a domain whose name servers sit inside the domain itself.

StepServer queriedWhat it returns
1. Root referralRoot serverNS records for the com zone plus glue for its servers
2. TLD referralcom serverNS ns1.example.com with glue A and AAAA records
3. Final answerns1.example.com at the glue addressAuthoritative A record for shop.example.com
4. Revalidationns1.example.comAuthoritative NS and address records for the zone
Resolution steps that depend on glue

When a glue record is required

A glue record is strictly required only for in-bailiwick name servers, meaning servers whose hostnames fall within the delegated zone itself. If the name server lives in an unrelated domain, the resolver can look up its address through a separate, independent chain of referrals, so glue is unnecessary and usually ignored.

The terms in the table below follow the vocabulary used in the DNS terminology specification, RFC 8499, and the 2024 glue requirements in RFC 9471.

Name server typeExample for example.comGlue status
In-domainns1.example.comMandatory, otherwise resolution fails
Sibling domainns1.example.net served by the same registryOptional, accepted by some registries
Out-of-bailiwickns1.dns-provider.orgNot needed and not stored
Sub-delegated childns.sub.example.com for sub.example.comMandatory in the example.com zone
Name server placement and glue needs

RFC 9471 clarifies that authoritative servers must include all available in-domain glue in referrals and must set the TC (truncation) bit if that glue does not fit in the response. Sibling glue may be included when space allows, but resolvers should not depend on it.

How glue records are created at a registry

For a domain directly under a top-level domain, glue is created by registering host objects with the registry through the registrar, not by editing a zone file. Registrars often label this feature child name servers, private name servers or host records in their control panels.

In the Extensible Provisioning Protocol (EPP), the registrar first creates a host object such as ns1.example.com with one or more IP addresses, then assigns that host to the domain as a name server. The registry publishes the resulting NS and glue records in the TLD zone, typically within minutes to an hour depending on its zone generation cycle.

  • Register each host with every IPv4 and IPv6 address it answers on.
  • Assign the hosts to the domain as its name servers.
  • Mirror the records in the child zone with identical names and addresses.
  • Verify the delegation by querying the TLD servers directly with dig or a similar tool.

For delegations deeper in the tree, such as sub.example.com, the operator of example.com adds the glue manually as ordinary A and AAAA records below the zone cut in its own zone file.

A glue record is technically an ordinary A or AAAA record; what makes it glue is its location below a zone cut in the parent zone. The comparison below separates it from neighboring record types that also appear at delegation points.

RecordZone that holds itPurposeAuthoritative in parent
NS recordParent and childNames the servers for the child zoneNo, child copy is authoritative
Glue A or AAAAParent, copied from childSupplies server addresses for the referralNo
DS recordParent onlyLinks the DNSSEC chain of trust to the childYes
SOA recordChild onlyMarks the start of authority for the zoneNot present in parent
Records found at a delegation point

An important consequence follows for DNSSEC: because glue is not signed by the parent, it carries no RRSIG record. A validating resolver confirms the child’s records only after reaching the child and following the DS and DNSKEY chain.

Common glue record problems and their fixes

Most glue failures come from mismatches between the parent and child copies. Because the parent and child are often managed by different people through different interfaces, an address change in one place is easily forgotten in the other.

SymptomLikely causeFix
Domain fails to resolveMissing glue for in-domain serversRegister host objects at the registrar
Intermittent timeoutsStale glue after a server IP changeUpdate the host object addresses
IPv6-only resolvers failNo AAAA glue registeredAdd AAAA addresses to each host
Lame delegation warningsGlue points to a server not serving the zoneCorrect the address or reconfigure the server
Truncated referralsToo many servers or addressesReduce name server count or rely on TCP fallback
Symptoms, causes and remedies

A frequent misconception is that changing a server address in the child zone updates the glue automatically. It does not: glue changes only at the parent, and resolvers may keep the old address until the parent’s NS and glue TTL, often 48 hours at large TLDs, expires.

In simple terms

Imagine a building directory that says the information desk for an office is located inside that same office. You cannot get in without first knowing where the desk is. A glue record solves this by having the main lobby directory also print the exact room number of that desk.

In the same way, the parent zone gives out the address of the name server directly, so a computer looking up a website does not get stuck in a loop. The key point is simple: glue is needed only when the server’s name sits inside the domain it serves.

A practical example

A regional hosting company runs its own name servers, ns1.hostco.com at 203.0.113.10 and ns2.hostco.com at 198.51.100.20, and uses them for hostco.com itself. At its registrar, the technical team creates both host objects with IPv4 and IPv6 addresses and assigns them as name servers. Queries to the com servers now return NS records with glue, and the domain resolves.

Two years later, the company moves ns2 to a new data center and changes its address in the zone file, but forgets the registrar. For about two days, roughly half of all lookups that pick ns2 time out. Once an engineer updates the host object at the registrar and checks the TLD response with dig, the stale glue disappears and resolution becomes reliable again.