To see why glue exists, follow a resolver looking up example.com when its nameservers are ns1.example.com and ns2.example.com. The .com servers reply: “ask ns1.example.com”. But to find the address of ns1.example.com, you’d have to ask the nameservers for example.com, which are ns1.example.com. That’s a closed loop, and a glue record breaks it by sending the address along with the answer.
How it works
When you create a glue record, the extension’s registry stores the nameserver’s IP next to the NS records. The .com servers’ reply is then complete:
;; AUTHORITY SECTION:
example.com. 172800 IN NS ns1.example.com.
example.com. 172800 IN NS ns2.example.com.
;; ADDITIONAL SECTION:
ns1.example.com. 172800 IN A 203.0.113.10
ns2.example.com. 172800 IN A 203.0.113.11
The ADDITIONAL section holds the glue records.
When you need it and when you don’t
| Situation | Need glue? |
|---|---|
Your domain uses ns1.hostingcompany.com |
No, that domain’s owner handles it |
You create ns1.example.com for example.com |
Yes |
You use ns1.example.com for another domain like example.net |
Yes on example.com, no on example.net |
Practical example
To check the glue for a .com domain, ask one of the extension’s servers directly:
dig +norecurse @a.gtld-servers.net example.com NS
If the ADDITIONAL section shows the right addresses, you’re set.
Common problems
- Only adding an A record: an A record for
ns1inside your zone isn’t enough; the address has to be registered at the registrar. - Changing the server IP and forgetting glue: resolution breaks, or you see errors like SERVFAIL.
- Mismatched addresses: the glue IP differs from the A record in the zone, so answers depend on the resolver.
On ArabyHost
If your domain points to ns1.arabicode.com and ns2.arabicode.com, you don’t need any glue record: those nameservers are registered and managed on our side. Just enter the two names at your registrar as shown in the change nameservers guide, then manage everything else from the control panel’s DNS editor.
FAQ
Do I need a glue record if I use my host's nameservers?
No. Glue for a host's nameservers is managed by whoever owns those nameservers' domain. You only need it if you create nameservers under your own domain.
Where do I add a glue record?
At your domain registrar, in a section usually called Child Nameservers, Register Nameservers or Host Records, not in your hosting's DNS editor.
What happens if my nameserver's IP changes?
You must update the glue record at the registrar too. Otherwise the internet keeps asking the old address and the domain can stop resolving.