Private nameservers such as ns1.yourbrand.com let resellers show their own brand instead of the host's DNS hostnames. Because those nameservers sit inside the domain they serve, they need child nameservers with glue records registered at the domain registrar. This guide explains why and how.
Before you start
- A domain for your brand, registered at any registrar.
- The IP addresses to use for ns1 and ns2. For an MdmHost reseller or master reseller plan, ask support via a ticket which IPs your private nameservers should use.
- Access to your registrar account.
What glue records are
To find example.com, a resolver asks the .com registry which nameservers serve it. If the answer is ns1.yourbrand.com, and yourbrand.com itself uses ns1.yourbrand.com, the resolver is stuck in a loop: it cannot look up the nameserver's IP without already knowing it. A glue record solves this. The registry stores the nameserver's IP address directly and hands it out together with the delegation.
A child nameserver (also called a host record or registered nameserver) is a nameserver hostname under your domain that is registered with the registry together with its glue IP.
Register child nameservers at your registrar
Every registrar names this differently: Child Nameservers, Register Nameservers, Host Records or Glue Records.
- Log in to the registrar and open your brand domain.
- Find the child nameserver section.
- Add
ns1with the first IP andns2with the second IP. - Save. The registry usually updates within minutes to a few hours.
Add matching A records in DNS
The zone for yourbrand.com on your hosting server must also contain A records for ns1 and ns2 with the same IPs. On cPanel hosting, check cPanel → Domains → Zone Editor; in WHM, resellers can see the zone under DNS Functions → Edit DNS Zone.
Point the brand domain and client domains
- Set the nameservers of
yourbrand.comitself tons1.yourbrand.comandns2.yourbrand.com, now that glue exists. - In WHM, set your reseller nameservers to the same names so new accounts show them.
- Tell clients to use these nameservers at their own registrars.
Verify the glue records
Ask the TLD servers directly. For a .com domain:
dig +norec @a.gtld-servers.net yourbrand.com NSThe ADDITIONAL SECTION should list ns1 and ns2 with your IPs. Then check that the nameservers answer:
dig @ns1.yourbrand.com yourbrand.com SOATip: You can also check the delegation with the WHOIS checker, which shows the nameservers registered for a domain.
Troubleshooting
- Registrar says the host does not exist: create the child nameserver first, then use it as a nameserver for a domain.
- Glue IP differs from the A record: update both so they match; mismatches cause intermittent failures.
- Domains stop resolving after a server move: the glue still points to old IPs. Update the child nameservers at the registrar.
- Cannot delete a child nameserver: other domains still use it. Move them away first.
Frequently asked questions
Do I need glue for nameservers on another domain?
No. Glue is only required when the nameserver hostname is inside the domain being delegated, or under the same TLD for some registries.
Do ns1 and ns2 need different IPs?
Most registries accept the same IP, but separate IPs are better practice. Use what your host provides.
How long do glue changes take?
The registry updates quickly, but resolvers may cache the old delegation for up to the TLD's TTL, often 48 hours for .com.
