Glue record: what it is and when you need it
A glue record is an address record (A or AAAA) for a nameserver that is published in the parent zone, so resolvers can reach a nameserver whose name lies inside the domain it serves. Without it, resolving that nameserver would require the very domain being resolved.
- Needed only when a domain's nameserver name ends in that same domain.
- You enter glue at your registrar; the TLD registry publishes it.
- Stale glue sends resolvers to the wrong IP even if your own zone is correct.
What does glue look like?
; in the .com zone (parent), published by the registry
example.com. IN NS ns1.example.com.
example.com. IN NS ns2.example.com.
ns1.example.com. IN A 203.0.113.10 ; glue
ns2.example.com. IN A 203.0.113.11 ; glueDo you need glue?
| Nameserver name | Needs glue? | Why |
|---|---|---|
| ns1.example.com for example.com | Yes | The name is inside the zone it serves, so its address must come from the parent |
| ns1.dnshost.net for example.com | No | Resolvers find dnshost.net separately |
| ns1.example.org for example.com | No | Different TLD zone supplies the address |
Definition: RFC 8499, section 7. In EPP, glue comes from host objects subordinate to the domain: RFC 5731.
Common questions
Why is a glue record needed?
To look up ns1.example.com you must ask the example.com nameservers, but you need ns1.example.com's address to do that. The parent zone breaks the loop by publishing the address alongside the delegation.
Where do I set a glue record?
At the registrar, usually under names like "host records" or "child nameservers". The registrar sends them to the registry. The exact menu name varies by registrar.
Does glue need updating when the nameserver IP changes?
Yes. The IP stored at the registry does not follow your own zone. If the server moves, update the host record at the registrar too, or resolvers keep receiving the old address from the TLD.
Can I delete a domain that has glue records?
EPP says a domain with subordinate hosts should not be deleted while they exist, and servers return error 2305. Remove or rename the host objects first, then delete or transfer the domain.
Keep reading
Watch your domains automatically
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.