10% Discount Only BDIX VPS And Turbo Hosting Limited Offer
00 : 00 : 00
UHBD10
what are glue records

What Are Glue Records? DNS Glue Records Explained

  • By Robin Hossain
  • 17 Nov, 2026

If you use branded nameservers such as ns1.yourbrand.com for your own domain, glue records help DNS resolvers find the nameserver's IP address. Without the required glue, domain resolution can fail.

This guide covers what a DNS glue record is, why nameservers need one, what a child nameserver is, and how to create glue records step by step for a cPanel/WHM server or a reseller hosting account.

Quick answer: Glue records are the IP addresses (A or AAAA records) of your nameservers, stored by your domain's registry. You need them when your nameservers sit inside the domain they serve, like ns1.yourbrand.com for yourbrand.com. Without glue, DNS can't reach those nameservers. You create glue records at your domain registrar, usually under "Child Nameservers" or "Register Nameservers."

Who This Guide Is For

This article is for you if you:

  • Run a reseller hosting business and want white-label nameservers for your clients

  • Manage a VPS or dedicated server with cPanel/WHM and want your own ns1 and ns2

  • See "nameserver not found" or "invalid nameserver" errors after setting custom nameservers

  • Are moving to a new server and need to update your nameserver IPs

If your domain uses your hosting company's default nameservers, you don't need to create glue records yourself.

What Is a Glue Record?

A glue record is a nameserver's IP address, stored in the parent zone so resolvers can reach that nameserver.

Think of it like asking for directions to a friend's house. If the only answer you get is "ask the person who lives there," you're stuck. A glue record skips that dead end by giving you the street address up front.

Every domain sits under a "parent." For yourbrand.com, the parent is the .com zone, run by the registry operator Verisign. When a resolver (the DNS server at your internet provider, for example) asks .com where yourbrand.com lives, the registry points it to your nameservers. If those nameservers are inside yourbrand.com, the registry also has to send their IP addresses. Those addresses are the glue.

The IETF standard RFC 9471 on DNS glue requirements puts it this way: glue is added to the parent zone during delegation because, otherwise, a resolver following the referral has no way of finding those addresses. It also confirms that A and AAAA records are the only type of glue currently defined.

Here's what a set of nameserver glue records looks like:

Nameserver (host)

IPv4 glue (A)

IPv6 glue (AAAA, optional)

ns1.yourbrand.com

192.0.2.10

2001:db8::10

ns2.yourbrand.com

192.0.2.20

2001:db8::20

(These are reserved example addresses. Use your real server IPs.)

Glue record vs A record: what's the difference?

A glue record is address information published in the parent zone. An A or AAAA record is the same kind of information kept in your own authoritative (child) zone. You usually need both, and they should always show the same IP.


Glue record

A / AAAA record

Where it lives

Parent zone (e.g. the .com registry)

Your authoritative child zone (e.g. yourbrand.com on your DNS server)

Who publishes it

The registry, after your registrar submits it

Your DNS server or DNS provider

Where you set it

Registrar client area ("Child Nameservers")

DNS zone editor (WHM, cPanel, Cloudflare, etc.)

When it's used

During delegation, so resolvers can reach your nameserver first

When resolvers query your nameserver directly

Needed for

Only nameservers inside the domain they serve

Any hostname that needs an IP

The key rule: keep the glue IP and the A/AAAA record IP the same. If they don't match, resolvers may get different answers depending on which one they use.

Explore More Details: DNS Records Explained

Why Do Nameservers Need Glue Records?

Nameservers need glue records to avoid a circular lookup. When a nameserver's name is inside the domain it answers for, DNS can't find its IP without help.

Here's what happens when someone visits yourbrand.com and there's no glue:

  1. The resolver asks the .com servers: "Who handles yourbrand.com?"

  2. The .com servers reply: "Ask ns1.yourbrand.com."

  3. The resolver now needs the IP address of ns1.yourbrand.com.

  4. To get it, it has to ask the nameserver for yourbrand.com, which is ns1.yourbrand.com itself.

  5. The lookup goes in a circle and fails.

With a glue record, step 2 changes. The .com servers send back the nameserver's name and its IP address in the same reply. The resolver goes straight to that IP, and the site loads.

When are glue records not needed?

You don't need glue when your nameservers belong to a different domain. If example.com uses ns1.otherdomain.net, the resolver can look up otherdomain.net on its own. There's no loop, so there's no need for glue.

Your setup

Glue needed?

Why

yourbrand.com uses ns1.yourbrand.com

Yes

The nameserver is inside the domain it serves

yourbrand.com uses your host's shared nameservers

No

The nameservers belong to another domain

clientsite.com uses ns1.yourbrand.com

Only on yourbrand.com

Glue lives with the domain that owns the nameserver name

You use a DNS provider such as Cloudflare

No

The provider's nameservers are on its own domain

How to Check if a Domain Has Glue Records

You can see glue records yourself with the free dig command, which comes with most Linux and macOS systems. Big companies that run their own DNS depend on glue too. For example, google.com uses nameservers under its own domain, such as ns1.google.com, so the .com registry has to publish glue for them.

Ask a .com TLD server directly:

dig +norec @a.gtld-servers.net google.com NS

Look at two parts of the reply:

  • AUTHORITY section: lists the domain's nameservers (the NS records)

  • ADDITIONAL section: lists those nameservers' IP addresses. These are the glue records.

Replace google.com with your own domain to check your setup. If your nameservers are in the AUTHORITY section but nothing appears under ADDITIONAL, your glue records are probably missing. 

(Live results change over time, so trust the output you see, not a copied example.)

What Is a Child Nameserver?

A child nameserver is a nameserver hostname under your own domain, such as ns1.yourbrand.com, that is registered at the registry with an IP address.

It's called a "child" because ns1 is a subdomain of yourbrand.com. Registering a child nameserver is how a glue record gets created. Your registrar sends the hostname and IP to the registry, and the registry publishes them as glue.

Registrars use different names for this feature:

  • Child Nameservers

  • Register Nameservers

  • Private Nameservers

  • Host Records or Registry Hosts

  • Glue Records

They all do the same job.

Read More: Complete Guide to DNS, Nameservers & Domain Pointing

Do Private Nameservers Need Glue Records?

Yes. Private nameservers that use your own domain always need glue records. Names like ns1.yourbrand.com sit inside yourbrand.com, so the registry must publish their IPs.

That's why hosting providers ask resellers to register glue before switching clients to branded nameservers. cPanel's official guide, How to Set Up Nameservers in a cPanel & WHM Environment, covers the WHM side. It explains that cPanel & WHM supports a white-label reseller setup, where each reseller can use their own nameservers.

Keep in mind that glue is created where the domain is registered, not where it's hosted. WHM, cPanel, and Cloudflare can't create glue records at the registry. Only your registrar can.

How Do I Create a Glue Record?

You create glue records in your domain registrar's control panel, then add matching A records on your DNS server. Here's the full process for an ns1 and ns2 glue record setup.

Before you start

You'll need:

  • Login access to the client area where your brand domain is registered

  • Two IP addresses for your nameservers (your hosting provider can tell you which ones to use)

  • WHM access (root, or a reseller account with nameserver privileges) if you use cPanel

Step-by-step: create glue records for ns1 and ns2

  1. Log in to your domain registrar. Open the brand domain you'll use for your nameservers (for example, yourbrand.com), not a client's domain.

  2. Find the child nameserver section. Look for "Register Nameservers," "Child Nameservers," or "Private Nameservers."

  3. Register ns1. Enter ns1 as the hostname and your first IP address, then save.

  4. Register ns2. Enter ns2 and your second IP address, then save. If your server supports IPv6, add AAAA glue too.

  5. Add matching A records to your DNS zone. Create A records for ns1 and ns2 that point to the same IPs you used for the glue.

  6. Set the nameservers in WHM. Go to WHM » Home » Server Configuration » Basic WebHost Manager Setup. Scroll to the Nameservers section, enter ns1.yourbrand.com and ns2.yourbrand.com, and save.

  7. Point domains to your new nameservers. Update yourbrand.com and your client domains to use ns1.yourbrand.com and ns2.yourbrand.com.

  8. Verify the glue at the parent zone. Query a parent (TLD) server directly. For a .com or .net domain, run:

dig +norec @a.gtld-servers.net yourbrand.com NS

  1. Check that the AUTHORITY section shows ns1 and ns2, and that the ADDITIONAL section shows the IPs you registered. For other TLDs, use that TLD's own parent servers. You can list them with dig bd NS (for .bd) or dig org NS (for .org), then query one of them the same way. You can also use the UmmahHostBD DNS Checker to confirm that ns1 and ns2 resolve correctly.

Note on WHM setup: The exact WHM configuration depends on your server setup and DNS cluster. Make sure both nameserver hostnames resolve to the registered glue IPs and that the authoritative DNS service is correctly configured. Entering nameserver names in WHM doesn't on its own guarantee that a working authoritative DNS service or redundancy is behind them.

Registries often publish changes quickly, but resolvers may keep old answers cached until their TTL (time to live) runs out. Waiting up to 24–48 hours before troubleshooting is a common rule of thumb, not an official limit.

Common glue record mistakes

  • Glue and A records don't match. Resolvers may get the glue IP from the registry and a different IP from your zone, so some visitors reach the wrong server.

  • The server IP changed but the glue didn't. When you move servers, update the glue at your registrar, not only your DNS zone.

  • Glue was added to the wrong domain. Glue belongs on the domain that owns the nameserver name, such as yourbrand.com, never on client domains.

  • Both nameservers use one IP. This works, but if that server goes down, all of your DNS goes down with it. Using separate IPs on separate servers is safer.

Key Takeaway

Glue records are your nameservers' IP addresses, stored at the registry. You need them any time your nameservers sit inside the domain they serve, which includes every private, branded ns1 and ns2 setup. Create them at your registrar, keep them matched with your A records, and update them whenever your server IP changes.

Set Up Branded Nameservers With UmmahHostBD

If you're starting a hosting brand, private nameservers are one of the first things your clients will notice. Our BDIX Reseller Hosting plans come with cPanel/WHM access, so you can set up ns1 and ns2 on your own domain. If you don't have a brand domain yet, you can register a domain with UmmahHostBD and create its child nameservers from the same client area.

Not sure your glue records are right? Contact the UmmahHostBD support team and we'll check your nameserver setup with you.

Read Ummah Host BD Nameserver Details Guide

Frequently Asked Questions

Is a glue record the same as an A record?

No. Both map a name to an IP address, but they live in different places. A glue record is published in the parent zone at the registry. An A record lives in your own authoritative zone. Keep both pointing to the same IP. See the comparison table above for the full breakdown.

How long do glue records take to work?

It depends on the registry and on cached DNS data. Many registries publish changes within minutes or hours, but old answers can stay cached until their TTL expires. Check with dig or a DNS checker rather than guessing.

Can I create glue records in Cloudflare or cPanel?

No. Only your domain registrar can create glue records, because it's the one that talks to the registry. Cloudflare, cPanel, and WHM manage your DNS zone, which is where you add the matching A records.

Do I need to update glue records when I change servers?

Yes. If your nameservers move to new IP addresses, update the child nameserver entries at your registrar. If you only change your A records, the registry may keep sending out the old IPs.

Do subdomains need glue records?

Only when you delegate a subdomain to nameservers inside that same subdomain. For example, if dev.yourbrand.com uses ns1.dev.yourbrand.com, the parent zone needs glue for it. Most websites never need this.

What happens if a glue record is wrong?

Resolvers will try the wrong IP address. Sites that use those nameservers may fail to load, or load for some visitors but not others. Fix the IP at your registrar and make sure it matches your A record.

Do .bd domains support glue records?

Child nameservers are a standard part of DNS, but the way you register them depends on the registry and registrar. For .bd and .com.bd domains, ask your registrar or the UmmahHostBD support team for the exact steps.

Robin Hossain

Author By

Robin Hossain

Chief Technology Officer (CTO) at Ummah Host BD. He specializes in web hosting infrastructure, Linux server administration, cPanel/WHM management, cloud technologies, cybersecurity, and website performance optimization. Robin is passionate about helping individuals and businesses build secure, fast, and reliable online platforms

Social Share :