DoFollow Blog
Home > Webmasters > How To Change the Default Nameservers with WHM

How To Change the Default Nameservers with WHM

November 2nd, 2011
Share

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

  1. Connect to your server as root through SSH.
  2. Open /etc/wwwacct.cong using your favorite text editor such as vi or joe.
  3. 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.

Author: Dani Zaharie Categories: Webmasters Tags:
  1. No comments yet.
  1. No trackbacks yet.