How to Set Up Private Nameservers on Domain Names (2026)
Want to set up private nameservers, like ns1.yourdomain.com and ns2.yourdomain.com, instead of your host’s generic ones? Private (or custom, “vanity”) nameservers look more professional, hide which hosting company you use, and let you move servers without asking clients to change their domain settings. When we moved to a KnownHost VPS in 2009, our registrar kept rejecting them with a “Nameserver not registered” error. The fix is registering them first as child nameservers. Here’s the full process in 2026.

Quick answer: To set private nameservers, first register ns1 and ns2 as child nameservers (glue records) at your domain registrar, pointing each to an IP address of your DNS server. Then create matching A records in your server’s DNS zone, and finally change the domain’s nameservers to ns1.yourdomain.com and ns2.yourdomain.com. Changes usually spread within a few hours, sometimes up to 48 hours.
Table of Contents
What you need before you start
- A server that runs DNS, such as a VPS or dedicated server with cPanel/WHM, Plesk or your own BIND/PowerDNS. Most shared hosting doesn’t offer private nameservers.
- Two IP addresses from your host, ideally on different servers or networks for redundancy. Some hosts let you use one IP for both, but that gives no backup if the server goes down.
- Access to your domain registrar account.
Step 1: Register child nameservers (glue records)
This is the step we missed in 2009. Your registrar must know the IP addresses of ns1 and ns2 before it accepts them as nameservers. Look for a section called Host names, Child nameservers, Personal DNS server or Register nameserver:
- GoDaddy: Domain settings > DNS > Hostnames > Add hostname.
- Namecheap: Domain List > Manage > Advanced DNS > Personal DNS Server.
- Other registrars: search their help for “child nameserver” or “glue record”.
Add ns1 with the first IP and ns2 with the second IP, then save.
Step 2: Create the nameservers on your server
Your server must answer DNS queries for your domain. In WHM, go to Server Configuration > Basic WebHost Manager Setup, enter ns1.yourdomain.com and ns2.yourdomain.com as the nameservers, and make sure your domain’s DNS zone has A records for ns1 and ns2 pointing to the same IPs. Other panels have similar settings.
Step 3: Change your domain’s nameservers
Back at the registrar, open the domain’s Nameservers setting, choose Custom nameservers, and enter ns1.yourdomain.com and ns2.yourdomain.com. If you see “Nameserver not registered” or “invalid host”, Step 1 isn’t complete or hasn’t saved yet.
Step 4: Check that it works
After a few hours, check with a DNS checker or the command line:
dig NS yourdomain.com +short
dig A ns1.yourdomain.com +shortBoth should show your new nameservers and their IPs. Online tools such as intoDNS also report missing glue records and other problems.
Should you use private nameservers in 2026?
They’re useful for resellers and agencies that host client sites. For most bloggers, a managed DNS service such as Cloudflare or your registrar’s DNS is faster, more reliable and protected against attacks, so private nameservers are optional. Whatever you choose, keep your domain secure; see our tips to increase domain name security and how to transfer a domain name safely. You can read about our original move in migrating from DreamHost to KnownHost VPS.
Frequently asked questions
What is a glue record?
A glue record tells the domain registry the IP address of a nameserver that sits inside the same domain, so resolvers can find it without a loop.
Can I use private nameservers on shared hosting?
Usually not, unless your host offers reseller hosting with private nameservers.
How long do private nameservers take to work?
Usually a few hours, but allow up to 48 hours for full propagation.
Do private nameservers affect SEO?
No. Search engines don’t care which nameservers you use, only that your site loads reliably.
Get our free weekly email: new tech guides and tools, no spam.
New and updated tech guides, a free tool worth bookmarking and one useful pick, once a week. No spam, unsubscribe anytime.
One email a week. Unsubscribe anytime. See our privacy policy.







hanks! My domains are with Mad Dog Domains and I have just followed your instructions sucessfully (just had to scroll down a bit to find “Host Summary”). I will now wait for propagation, but I think this did the trick
Hi,
I have added host to my godaddy. But the problem Nameservers not registered stil persist.
Can i have some advise?
Thanks
Anas
Let me just clarify this for something already confusing enough. Initially, when in Godaddy’s Host Summary area
yes you do need to put in the full DNS info like this:
NS1.Domain.com & NS2.Domain.com
But in the Set Host and IP address area when you click the Edit links, in there where it opens up a small screen, only add the NS1 | NS2 (this is where the domain.com part in already hard coded in so by adding it in the box only duplicates the DNS info cunfusing things) Also add in your IP address with NS1 & NS2 and you should be good to go.
The fix… One Godaddy tech, name Sean, out of 3 of others detected the problem for me after 3 days…
I blame this on Godaddy’s interface as I fell into the trap of pasting in the full DNS info into the edit area of the Host Summary section. I pasted it in just same as I always do in their set nameservers area.
But you must know that these boxes in the Host Summary edit area only require: NS1 | NS2
Therefore, don’t add in the full ===> domain.com
It’s confusing but leave it out of the edit Host Summary area…
In the Godaddy Host Summary area and due to interface blindness of “half” hardcoding in the DNS domain info, you can easily make the mistake of just copy/pasting in the whole DNS info as such: NS1.Domain.com | NS2.Domain.com. But no, that’s wrong in the edit area boxes where it must be set. However it’s fine to use the full nameserver info in the other nameserver boxes like: Set Name Servers or when intially setting the DNS boxes in the Host Summary area. Some of us won’t see that the domain.com part of the DNS info in these boxes is already written in (over to the right) and outside of the boxes so you can easily miss it.
So, again let me emphasize… you only have to type in: NS1 | NS2 in the edit area of Host Summary.
If you fill in the full DSN info then your domain will not resolve and will keep coming up as: Nameserver Not Registered because you’re generating doubled domain info as private name servers like this: NS1.Domain.com.Domain.com. / NS2.Domain.com.Domain.com
But it should be resolved as: NS1.Domain.com & NS2.Domain.com
I hope this makes sense in case anyone else has this happen.
Tried everything as you have described which I believe is the correct infomation for Godaddy… but still the domain name will not resolve. Host Gator says they have done all they are supposed to do so I’m at a stalemate in
meantime… over 3 days and no resolution in site but more support calls.
how to do it in zamfoo. please share in detail.
Thanks a lot. I was finding it from last 5 hour and you made it so easy.
How to set this on name.com, i can`t find the Host Summary please help, thank you
I have been setting up my private name servers just like you described above for over a year now.
Today when I went to set up a site I went to host summary, added my name servers, then went to manage and all I keep getting is name server not registered.
I called go-daddy and their support told me I am not suppose to do it that way.
Any tips?
Thanks
It is possible only if your host allows private nameservers. Most hosts do not allow that and use their own nameservers. Check with your host.
Thank you. Very clear. It work perfect.
Thanks! My domains are with Mad Dog Domains and I have just followed your instructions sucessfully (just had to scroll down a bit to find “Host Summary”). I will now wait for propagation, but I think this did the trick!
That’s a simple and great solutions…. i too wasted a lot of time on this error… but finally added the nameserver details with help of this post…
Thanks a lot
@Sunder – I am glad this tutorial worked for you.
does this work with any other hosts,? i mean shared host account like hostgator?
If your host has this facility, they will surely publicize it.
Mida, I just set up a reseller account with Host Gator, all of my domains are on Godaddy. I followed the instructions on this page and it worked great. Propagation can take a day or two once set. Just wanted to let you know that it does indeed work with hostgator.
Cheers :)
Let me know which VPS plan you are using for this site…?
I’m planning to purchase managed VPS for Video Sharing site.
I am using VPS2 with cpanel