I've been seaching and googling for an answer that I just can't find. I have a vps account with no nameserver and have been told I need to make the nameserver myself. Does anybody know of any good tutorials or could explain how to setup the nameservers. I have already added all of my ip addresses to my account cpanel/whm but am struggling with this nameserver problem. I have tried going to the "basic cpanel/whm setup" panel then click assign ip address but that just leads me to a screen with a loading bar which stays there for at least hours and had to cancel it since it seemed like an infinit loop.
So please, can anybody guide me to how to setup a nameserver without registering or paying for a new domain.

Control panel: cpanel/whm
Operating System: CentOS

Dani AI

Generated

Short expert summary and path forward: setting branded nameservers on a cPanel/WHM CentOS VPS is doable without paid support, but it requires two pieces — configuring WHM to serve the zones and creating “glue” (host/child nameserver) records at the domain registrar so the rest of the Internet can find those nameservers. If registering a new domain is not wanted, using the registrar’s or a third‑party DNS host (Cloudflare, registrar DNS, etc.) is the practical alternative. (docs.cpanel.net)

Concrete WHM steps (high level): pick a nameserver daemon in WHM -> Service Configuration » Nameserver Selection (PowerDNS is the default); set the nameserver hostnames in WHM » Server Configuration » Basic WebHost Manager Setup (ns1.example.com, ns2.example.com), check “Add A Entries for all Nameservers” and “Add A Entries for Hostname”, and assign the IPs (or add them via IP Functions if missing). Finally, register those hostnames as child/host names (glue) at the domain registrar and then change the domain’s nameservers to the new hostnames. (docs.cpanel.net)

Troubleshooting notes (addresses the WHM “stuck loading” symptom mentioned by and ): confirm the server has the IPs in the WHM IP pool, check cPanel logs at /usr/local/cpanel/logs/error_log, and restart cPanel if needed (systemctl restart cpanel). If the WHM UI refuses to finish, create the A records for ns1/ns2 directly in WHM » DNS Functions » Edit DNS Zone, then register glue at the registrar. Quick verification commands:

tail -n200 /usr/local/cpanel/logs/error_log
systemctl restart cpanel
dig +trace example.com
dig NS example.com
dig @ns1.example.com example.com SOA
named-checkzone example.com /path/to/zonefile

Use dig +trace and an authoritative query to confirm delegation and glue. (docs.cpanel.net)

Operational tips and fallbacks: run at least two authoritative servers (different IPs/networks if possible) for resilience; open UDP/TCP port 53 in any host and provider firewalls; allow 24–48 hours for registrar/TLD propagation. Paying a support tech (as did) is a valid shortcut, but following the WHM + registrar workflow above will make the nameservers self‑hosted and manageable going forward. (domaindetails.com)

I am having the same issue - was a resolution ever found?

I am having the same issue - was a resolution ever found?

First welcome to daniweb as I see it's your first post. Also it is best to not bump old topics or solved topics. Also as for my solution to this problem, I paid support to setup the nameservers for me. At the same time you can pay support to setup any php extensions you want added to your vps if such a service is available for you. That is what I did.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.