Private Nameservers & Authoritative DNS
Run your own authoritative nameservers (ns1/ns2) on your VPS with Vanta Panel — register glue records and serve DNS without Cloudflare.
Vanta Panel includes a built-in authoritative DNS server (PowerDNS). That means you can run your own private nameservers — ns1.yourdomain.com and ns2.yourdomain.com, answering DNS directly from your VPS — instead of relying on Cloudflare or another third party. When you host a customer's domain, its DNS zone is created automatically and served from your server.
This guide takes you from zero to working private nameservers. Everything below happens in vWHM → Server Setup.
What you'll need
- Vanta Panel 4.64 or newer (the installer sets up the DNS engine automatically).
- A domain you control to build the nameservers on — e.g.
yourdomain.com, giving youns1.yourdomain.comandns2.yourdomain.com. Use a domain that is yours, not one you host for a customer. - Access to that domain's registrar (to create glue records).
- Port 53 (TCP and UDP) open at your VPS provider's firewall. The installer opens it in the server's own firewall; some providers have an additional edge firewall you must open too.
Step 1 — Set your nameservers and hostname
In vWHM → Server Setup:
- Set the server hostname to a subdomain you control, e.g.
server.yourdomain.com. Saving this runshostnamectlon the server, so re-check your license and your mail hostname afterwards. - Enter your private nameservers:
- Nameserver 1:
ns1.yourdomain.com - Nameserver 2:
ns2.yourdomain.com - Nameserver 3 and 4 are optional; leave them blank unless you have somewhere else to point them.
- Click Save server setup.
These values are what every new hosting account's welcome screen tells the customer to set at their registrar. The page then shows you the exact glue records to create — you'll need them in the next step.
Step 2 — Register glue records at your registrar
For the world to find your nameservers, your domain's registrar must publish glue records (also called "host records", "child nameservers", or "register a nameserver"). A glue record ties a nameserver hostname to an IP address.
At your registrar, create:
ns1.yourdomain.com → YOUR.SERVER.IP
ns2.yourdomain.com → YOUR.SERVER.IPWhere to find this varies by registrar — look for Private Nameservers, Register Nameservers, Host Records, or Child Nameservers in your domain's advanced DNS or settings.
This step can only be done at the registrar — no software on the server can create glue for you. DNS won't resolve through your nameservers until the glue exists and propagates (usually minutes to a few hours).
Step 3 — Enable automatic zones
Back in vWHM → Server Setup, under Authoritative DNS:
- Confirm the status block shows DNS engine (PowerDNS): installed, Service: running, and Port 53: listening. It also reports how many zones the server currently hosts.
- Tick "Automatically create a DNS zone for each new hosting account."
- Save.
If the card says the engine is not installed, the toggle is not offered at all — re-run the installer on this server first, then reload the page.
From now on, every account you create in vWHM gets an authoritative DNS zone built for it — SOA, your ns1/ns2 NS records, A records for the domain and www, and an MX record — all served from your server.
Step 4 — Point a domain and verify
When you (or a customer) create a hosting account for example.com:
- At
example.com's registrar, set its nameservers tons1.yourdomain.comandns2.yourdomain.com. - Once that propagates, the domain resolves through your server.
Verify at any time with dig (or an online DNS checker):
dig @ns1.yourdomain.com example.com A
dig example.com NSYou should see your server's IP for the A record and your ns1/ns2 for the NS records, answered authoritatively (the aa flag in the reply).
How it works
- Vanta Panel runs PowerDNS as an authoritative-only DNS server: it answers for the zones you host and is not an open resolver, so there's no amplification risk in exposing port 53.
- Each hosting account's zone lives in the panel — created when you add the account, updated on changes, and removed when you terminate it.
- You can still use Cloudflare for domains you prefer to manage there. The built-in authoritative DNS and the optional Cloudflare integration coexist, and the Server Setup page tells you which of the two is currently doing the resolving.
Which path a domain is on
A domain served by your own nameservers is edited on the server. A domain whose nameservers point at Cloudflare is edited in the Zone Editor, which talks to the Cloudflare API — that page will report "not connected" for any domain that is not on the configured Cloudflare account, which is expected for domains using your private nameservers.
Troubleshooting
| Symptom | Fix |
|---|---|
dig @YOUR.SERVER.IP example.com times out | Port 53 (TCP + UDP) isn't open at your VPS provider's edge firewall. Open it there. |
| Nameservers don't resolve globally | Glue records aren't registered (Step 2), or are still propagating. Re-check at the registrar and allow a few hours. |
| Server Setup shows "not installed" | You're on a build older than 4.64. Re-run the installer on this server to add the DNS engine — see Installing Vanta Panel. |
| A new account's domain doesn't resolve | Confirm the "automatically create a DNS zone" toggle is on, and that the domain's registrar points at your nameservers. |
| SSL won't issue for a domain on your nameservers | HTTP validation needs port 80 reachable and the A record pointing here. See SSL / TLS Certificates. |