10% Discount Only BDIX VPS And Turbo Hosting Limited Offer
00 : 00 : 00
UHBD10
what is a private nameserver

What Is a Private Nameserver? How to Create ns1 and ns2

  • By Robin Hossain
  • 15 Nov, 2026

A private nameserver is a nameserver that uses your own domain name, such as ns1.yourbrand.com and ns2.yourbrand.com, instead of your hosting provider's default names. Anyone who looks up your domain's DNS sees your brand. This guide explains what a private nameserver is, how it differs from a custom or branded nameserver, and how to create ns1 and ns2 on a cPanel/WHM server, step by step.

Quick answer: To create a private nameserver, you need four things:

  1. A domain you own.

  2. A VPS or dedicated server with WHM access and at least one IP address.

  3. Two glue records (child nameservers) at your domain registrar that point ns1 and ns2 to that IP.

  4. The same two nameservers are set in WHM.

Then you point your domains to ns1 and ns2 and wait for DNS to update.

What Is a Private Nameserver?

Short answer: A private nameserver is a DNS server address named after your own domain. It tells the internet where to find the DNS records for every website pointed at it.

Every domain on the internet uses the Domain Name System (DNS) to turn a name like example.com into an IP address. Nameservers hold those answers. When a visitor types your domain, their browser asks the domain's nameservers, "Which IP address is this site on?" (how DNS works, explained by Cloudflare).

Most hosting accounts use the provider's nameservers, like ns1.hostingcompany.com. A private nameserver does the same job under your name:

Nameserver

Record type

Points to

ns1.yourbrand.com

A record

Your server's main IP address

ns2.yourbrand.com

A record

A second IP (or the same IP)

You need at least two nameservers. Most registrars won't accept just one, and the DNS standard itself calls for more than one nameserver per zone so there's a backup (RFC 1034).

Read More Details Guide What Are Nameservers? 

What Is a Custom Nameserver?

Short answer: "Custom nameserver" is a loose term for any nameserver name you pick yourself. Many people use it to mean a private or branded nameserver.

The three terms overlap. Here's how hosting teams usually tell them apart:

  • Private nameserver: DNS runs on your own VPS or dedicated server, and you manage every DNS zone yourself.

  • Branded (white-label) nameserver: The names use your domain, but they point to your hosting provider's DNS servers. The point is branding, not control.

  • Custom nameserver: Can mean either of the above. Some registrars also use it for "any nameserver that isn't our default."

If a client asks for "custom nameservers," ask them one question first: do they want to run their own DNS, or just show their own brand? The answer tells you which setup to build.

Why Use Branded Nameservers?

Short answer: Branded nameservers keep your name in front of clients, and they make server moves easier because client domains can keep the same nameserver names.

They make the most sense if you host websites for other people:

  • Your brand, not someone else's. A client who runs a WHOIS or DNS lookup sees ns1.youragency.com, so they don't start asking who your hosting provider is.

  • Easier server moves. When you move to a new server, you update the IP behind ns1 and ns2 at your registrar. Client domains keep pointing to the same names.

  • Full DNS control (private setup). On a VPS or dedicated server, you can edit every client's DNS records from WHM's DNS tools.

Who doesn't need it? If you run one or two of your own sites on shared hosting, your provider's default nameservers work fine. A private setup adds work you won't get much back from.

What You Need Before You Start

Check these four things first:

  1. A registered domain that you control, such as yourbrand.com.

  2. A server with WHM access. This usually means a Linux VPS with cPanel or a dedicated server. Most shared hosting plans don't let you do this.

  3. One or two IP addresses for the nameservers. Your host assigns these.

  4. Login details for your domain registrar. You'll create the glue records there.

If your domain ends in .bd or .com.bd: BTCL (Bangladesh Telecommunications Company Limited) runs the .bd registry, and the process can work differently from .com. Some registrars offer a child nameserver form, while others may handle it by support request. Ask your registrar how they register child nameservers for .bd domains before you begin.

How Do I Create a Private Nameserver?

Short answer: You set it up in two places. First, register glue records for ns1 and ns2 at your domain registrar. Then set the same nameservers in WHM on your server.

Why two places? There's a loop to break. If ns1.yourbrand.com is the nameserver for yourbrand.com, a resolver can't look up ns1's IP without already knowing where ns1 is. A glue record fixes this. It stores the nameserver's IP address in the parent zone, which for yourbrand.com is the .com zone run by Verisign. That way, a lookup has somewhere to start.

This is the part people often miss: creating A records for ns1 and ns2 in WHM is not enough. Those records live on your own server, and the outside world can't reach them until the registry knows your nameservers' IPs. You also have to register the nameserver hosts and their IPs through your registrar, which passes them to the registry. That's the job of Step 2.

How Do I Create ns1 and ns2? (Step-by-Step)

These steps use the standard cPanel/WHM process. Menu names can be a little different depending on your registrar and your WHM version.

Step 1: Find your nameserver IP addresses

Look up your server's IP address in WHM or in your server welcome email. You can use one IP for both ns1 and ns2, and many small setups do. Just know what that gives you and what it doesn't:

  • Same IP for ns1 and ns2: You have two nameserver names but only one machine behind them. If that server goes down, both nameservers go down with it.

  • Two IPs on the same server: This looks better on paper, but it still won't protect you from a server or data center failure.

  • Real redundancy: ns1 and ns2 run on separate servers, ideally in different networks or locations, and both hold the same DNS zones, kept in sync (for example, with a cPanel DNS cluster or a secondary DNS service).

For a small agency, one server is a fine place to start. If client uptime matters to your business, plan for separate nameserver servers as you grow.

Step 2: Create glue records at your domain registrar

  1. Log in to your registrar's control panel.

  2. Open the management page for your domain.

  3. Find the option for Child Nameservers, Glue Records, Host Records, or Register a Nameserver. Each registrar labels it differently.

  4. Add ns1.yourbrand.com with your first IP address.

  5. Add ns2.yourbrand.com with your second IP address (or the same one).

  6. Save.

Step 3: Set the nameservers in WHM

  1. Log in to WHM, usually at https://your-server-ip:2087.

  2. Go to Server Configuration → Basic WebHost Manager Setup (cPanel's official guide).

  3. Scroll down to the Nameservers section.

  4. Enter ns1.yourbrand.com and ns2.yourbrand.com.

  5. Click Configure Address Records for each one and check that the IP is correct.

  6. Click Save Changes.

Step 4: Point your domains to ns1 and ns2

At your registrar, change each domain's nameservers to ns1.yourbrand.com and ns2.yourbrand.com. From now on, new cPanel accounts you create in WHM will list your private nameservers by default.

Check Full Guide How to Point Domain to Hosting

Step 5: Wait for propagation, then test

DNS changes don't show up everywhere at once. They may become visible within a few hours, but the time can vary depending on registry updates, TTL values, and DNS resolver caches. Many providers suggest allowing up to 24–48 hours as a general guide, not a fixed deadline. To check, use a free tool like whatsmydns.net or run:

dig A ns1.yourbrand.com

dig NS clientdomain.com

The first command should return your IP address. If it returns nothing, the glue record is usually missing or misspelled at the registrar. Changing settings in WHM won't fix that, so check the registrar first.

Common Mistakes to Avoid

Most broken setups come down to one of these:

  • No glue records. WHM looks fine, but the nameservers never resolve from outside your server.

  • Only one nameserver. You have no backup, and many registrars will reject the setup anyway.

  • Typos. ns1.yourbrand.com and ns1.yourbrnd.com are two different hosts.

  • Moving live sites too early. Don't switch client domains until both nameservers resolve correctly, or those sites may go down.

Read Why Nameserver Not Working?

Setting Up Private Nameservers on Ummah Host BD

Ummah Host BD's Linux hosting runs on cPanel, CloudLinux, and LiteSpeed, with data centers in the USA and Bangladesh and BDIX connectivity for fast speeds inside Bangladesh. To run your own private nameservers, choose a plan that gives you WHM access:

Not sure which plan fits? Contact our support team [VERIFY URL] before you order, and we'll check your setup with you.

Bottom Line

Setting up a private nameserver comes down to two records in two places: glue records at your registrar, and matching nameservers in WHM. Test both ns1 and ns2 before you move any live domains. If anything doesn't resolve, check the glue records first, because they cause most failed setups.

Frequently Asked Questions

Is a private nameserver the same as a custom nameserver?

Mostly, yes. "Custom nameserver" is the wider term. A private nameserver uses your own domain and usually runs DNS on your own server.

Can I create a private nameserver on shared hosting?

Usually not. You need WHM access and an assigned IP address, which normally means a VPS or dedicated server. Ask your host to check your plan.

Do I need two IP addresses for ns1 and ns2?

No. Both can point to the same IP, and many small setups work that way. But two names on one IP, or two IPs on one server, don't give you real redundancy. If that server fails, both nameservers stop answering. For true resilience, run ns1 and ns2 on separate servers or networks with synced DNS zones.

How long does a private nameserver take to work?

Often a few hours, but it varies. The timing depends on how fast the registry updates, your records' TTL values, and how long DNS resolvers keep old answers cached. Many providers suggest allowing up to 24–48 hours as a general guide.

What is a glue record?

A glue record (also called a child nameserver or host record) is an entry at the domain registry that links a nameserver name, like ns1.yourbrand.com, to its IP address.

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 :