Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using cPanel/WHM 11.28.87, and when I go into "Basic cPanel & WHM Setup" in WebHost Manager and change my default nameservers at the bottom of the page, save, and re-open "Basic cPanel & WHM Setup", the nameservers are right back to how they were!

I can change other items on this same page, like the default shared IP address.

Screen Capture 1 Screen Capture 2 Screen Capture 3

Anyone know what file on disk these are stored in so I can just go and edit them myself?

EDIT: Darryl at NetHosted told me the file is /etc/wwwacct.conf... but I just edited that file and it already contained the correct name servers! So WHM is pulling the old name servers from somewhere else...

EDIT 2: Restarting cPanel / WHM via /etc/init.d/cpanel restart does not solve this issue either, I should have mentioned I tried that.

share|improve this question

closed as off-topic by HopelessN00b Jan 13 '15 at 21:58

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. – HopelessN00b Jan 13 '15 at 21:58
@HopelessN00b This question is on topic because it is about managing the hardware or software of servers while working as a sysadmin for a service provider. – Josh Jan 13 '15 at 22:35

You can find the default nameservers in the /etc/wwwacct.conf file they are stored in the format


editing this file directly should work.

share|improve this answer
Wow, the plot thickens! I opened that file and it already contained the correct name servers! Yet, WHM still lists the old name servers and creates accounts with the old name servers! – Josh Apr 14 '11 at 14:52
It might be worth trying a forced cPanel update to see if this helps: /scripts/upcp -force – Darryl at NetHosted Apr 15 '11 at 11:17
up vote 1 down vote accepted

It looks like this was a bug with cPanel. The name servers I was seeing were my reseller's name servers. Yet it was showing them to me in the wrong place.

This seems to be corrected in the current version. But ultimately the fix was to correct the name servers under Reseller Center.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.