On a cPanel / WHM Server, you can add or change the private nameservers. However, when you setup an account through WHM, it does not show your private nameservers, instead it shows the default nameservers set by your hosting provider.
To correct this, you will need to modify the wwwacct.conf file.
How To Change the Default Nameservers with WHM
- Connect to your server as root through SSH.
- Open /etc/wwwacct.cong using your favorite text editor such as vi or joe.
- Add the following lines or edit them if they already exists:
ns = ns1.mydomain.com
ns2 = ns2.mydomain.com
The new nameservers will now show upon new account creation with WHM using the administrator account.