Hello,

We are trying to create a new account on our dedicated server with whm. We fill out the information:

Domain: jdomain.co.uk
Username: jollysof
Password:xxxxxx
Email: me@domain.co.uk
DNS settings: Use the nameservers specified at domain's registrar(ignore locally specified nameservers)

Mail Settings: Automatically Detect Configuration.

When we attempt to create this account we receive the following error:

(prompt)Please setup a nameserver
Account Creation Status: Failed(please setup a nameserver)

We are using cPanel 11.24.5-S38506 - WHM 11.24.2 - X 3.9
CENTOS 5.4 i686 standard.

We have created account on this server before with no problem but now we are getting this error.

We have disabled any nameserver software in nameserver selection, and we choose the use nameservers at registrar option so we should be able to create this account. Any of you lovely chaps have any ideas?

Dani AI

Generated

Short answer: WHM is refusing the account because the server-wide nameserver/default account settings are missing, not because you chose the “use registrar nameservers” option. As flagged, a lookup-of-the-domain at the registrar level can be a separate DNS issue, but WHM itself requires certain default values (NS/NS2 plus a few other lines) in the Basic WebHost Manager Setup or in /etc/wwwacct.conf before it will create accounts. (docs.cpanel.net)

Quick steps to fix (pick the GUI or SSH route):

  • Via WHM: go to Server Configuration → Basic WebHost Manager® Setup and fill the Nameservers section (enter at least two nameserver hostnames). Save and retry the account creation.

  • Via SSH (root): confirm the required lines exist, and add them if not.

    grep -E '^(NS|NS2|ADDR|DEFMOD|HOMEDIR|LOGSTYLE|SCRIPTALIAS)' /etc/wwwacct.conf
    
    # If lines are missing, edit /etc/wwwacct.conf and add sensible defaults:
    # NS ns1.yournameserver.tld
    # NS2 ns2.yournameserver.tld
    # ADDR <server-shared-ip>
    # DEFMOD x3
    # HOMEDIR /home
    # LOGSTYLE combined
    # SCRIPTALIAS y

After you save in WHM (or update the file), try creating the account again. The cPanel docs explain which keys are mandatory and that account creation fails if they are missing. (docs.cpanel.net)

Notes and extra checks: if you plan to use registrar-managed DNS, set the default NS values to the registrar nameservers (or valid placeholders) so WHM’s checks pass. If you use private/vanity nameservers, register the glue/host records at the registrar and ensure WHM’s nameserver IPs (and /var/cpanel/nameserverips.yaml) reflect those IPs; you may need to run the cPanel nameserver update scripts if the IP cache is stale. Also confirm the domain is actually registered and its NS delegation is correct — that was the point raised by and can block DNS-based checks. (support.cpanel.net)

Recommended Answers

All 2 Replies

The domain does not resolve at the moment and that may be the problem. When I tried to see where the domain was registered I got:

whois
[Querying ]
[]

No match for "".

This domain name has not been registered.

The domain is not real, i.e. this is not the domain I am using in my cpanel. I cannot edit this post to change it to example etc.

When I type in the real domain and click the use nameservers at domains registrar it looks up the nameservers specified and returns them correctly. The problem is that it does not ignore the locally specified nameservers, of which there are none, even with namesever selection software disabled.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.