Offer

Pay yearly and get 2 months free + an extra 30% off your hosting

Claim offer
HostingWeb HostingLiteSpeed and NVMe on FlyPanelfrom ৳100BDIX HostingPeered inside Bangladeshfrom ৳100WordPress HostingTuned for WooCommercefrom ৳1,000
Built in-houseFlyPanel, malware protection, backupsCustom-tailored, included on every plan→
2 months free on yearlyCompare products
ServersVPS HostingKVM with full root accessfrom $20BDIX VPSPeered inside Bangladeshfrom $20Dedicated ServersAMD Ryzen and dual Xeonfrom $250
1 Gbps port, Tier-3 datacentersCustom build
ResourcesKnowledgebaseSetup guides and troubleshootingBlogProduct news and performance tipsAbout Doze HostWho we are and where servers liveNetwork statusLive uptime for every service↗
Register a domainSearch and register a new nameClient areaBilling, services and invoices↗
Talk to an engineer, 24/701795 470074
Talk to us, 24/7Call an engineerReal people, day and night01795 470074Email supportsupport@dozehost.com↗Open a ticket27 min average first response↗
Help yourselfKnowledgebaseSetup guides and troubleshootingBlogProduct news and performance tipsNetwork statusLive uptime for every serviceLive
Client area: billing, services, invoicesLog in
Hosting Web Hosting ৳100/moLiteSpeed, FlyPanel, daily backups BDIX Hosting ৳100/moPeered inside Bangladesh WordPress Hosting ৳1,000/moTuned for WooCommerce
Servers VPS Hosting $20/moKVM with full root BDIX VPS $20/moPeered inside Bangladesh Dedicated Servers $250/moAMD Ryzen and dual Xeon
Domains
Resources Knowledgebase Blog About Doze Host Network status
Help Call 01795 470074Real engineers, 24/7 Email supportsupport@dozehost.com Open a ticket27 min average first response Knowledgebase Blog
Get started Log in
Home / Knowledgebase / DomainsDomains

How to Create Private (Custom) Nameservers for Your Domain

Last updated July 21, 2026About 2 minutes to read

Creating private nameservers involves two separate systems working together: your domain’s own DNS zone, and your domain registrar’s glue record registration. Here’s the practical walkthrough.

Step 1: Decide on the hostnames and IPs

Standard convention is ns1.yourdomain.com and ns2.yourdomain.com, each pointing at an IP address your DNS infrastructure actually answers on (commonly your hosting server’s IP, or a dedicated DNS cluster if you run one).

Step 2: Add A records in your DNS zone

In your domain’s DNS zone editor (cPanel’s Zone Editor, or wherever your domain’s DNS is currently managed), add:

  • An A record: ns1 → your first DNS-serving IP
  • An A record: ns2 → your second DNS-serving IP (ideally a genuinely different, redundant server)

Step 3: Register them as “child nameservers” at your registrar

This is the step people most often miss. Your domain’s registrar needs to know that ns1.yourdomain.com and ns2.yourdomain.com are valid nameservers before anyone can point a domain at them — this is done through a “child nameserver,” “glue record,” or “host record” section in your registrar’s control panel, entered separately from the DNS A records above. See our dedicated guide on registering glue records for this exact step.

Step 4: Confirm they actually answer DNS queries

Whatever server(s) those IPs point to must be running a DNS server (e.g. cPanel/WHM’s built-in DNS clustering, BIND, or PowerDNS) actually configured to answer authoritative queries for domains you’ll point at them — private nameservers only work if something is genuinely listening and answering on those IPs.

Step 5: Use them

Once steps 1-4 are confirmed working, update any domain (including this one, and any client domains) to use ns1.yourdomain.com / ns2.yourdomain.com as its nameservers, same as you would with any other nameserver pair.

A word of caution

Because glue records must resolve correctly before nameservers using them work at all, test with a low-stakes domain first if possible, rather than switching your main production domain’s nameservers before confirming the whole chain resolves correctly.

Still stuck?Our support team is here 24/7. A real person replies to every request.