Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

NS ns1.nameserver.com
NS2 ns2.nameserver.com
NS3
NS4

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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