How to Change the Default Nameservers via WHM
(Root Access Required)
Evans
Last Update 2 months ago
As the server administrator, you can configure the default nameservers that are automatically assigned when creating new cPanel accounts. This is useful for branding and DNS management.
Note: Root-level access to WHM is required. Reseller accounts do not have permission to modify default nameservers.
1. Log in to WHM as Root
Access your server’s WHM interface using:
- Use your root credentials to log in.
In the left-hand menu or top search bar, type:
- Click on the Basic WebHost Manager® Setup option under Server Configuration.
Scroll down to the Nameservers section.
You will see multiple fields (Nameserver 1, Nameserver 2, etc.).
Enter your preferred nameservers (e.g., ns1.yourdomain.com, ns2.yourdomain.com).
Once you’ve entered your custom nameservers, click the Save Changes button at the bottom of the page.
Optional: Register Nameservers with Your Domain Registrar
If you’re using custom nameservers (like ns1.yourdomain.com), ensure that:
They are registered at your domain registrar (as glue records).
Corresponding A records are added in DNS to point to your server’s IP.