Results 1 to 7 of 7

Thread: Need help with Initial WHM setup, step 4 nameservers error

  1. #1
    Member
    Join Date
    Jul 2012
    Posts
    20
    cPanel/WHM Access Level

    Root Administrator

    Default Need help with Initial WHM setup, step 4 nameservers error

    Hi, i was trying to do the initial WHM setup in my VPS after cpanel installation, and I stuck on Step 4:Nameservers

    here is what i entered:

    Nameserver 1 ns1.mydomainname.com
    Nameserver 2 ns2.mydomainname.com

    Add A Entries for Nameservers & Hostname

    Add "A Entries" for all Nameservers ( the box was checked)
    Please enter an IP address for each of your nameservers.
    ns1.mydomainname.com 11.11.111.111
    ns2.mydomainname.com 11.11.111.112

    Add "A Entries" for Hostname ( the box was checked)
    IP for Entry: 11.11.111.111

    When i clicked save and go to setup 5, I got following errors:

    There was a problem saving your configuration
    hostname_a_record: Sorry, that's an invalid domain

    should i continue anyways? or why is this happening? does this happen to any of your guys too during the initial WHM setup?

    Thank you

    Sean

  2. #2
    Member
    Join Date
    Jul 2012
    Posts
    20
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Need help with Initial WHM setup, step 4 nameservers error

    No one has this problem before? Am i the first one?

  3. #3
    Member
    Join Date
    Jun 2010
    Posts
    10

    Default Re: Need help with Initial WHM setup, step 4 nameservers error

    Same here, I have setup one server today and got the same error. I continued, everything works fine, but A record for hostname is not created.

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,054
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Need help with Initial WHM setup, step 4 nameservers error

    You are able to go back in after setup and reset the hostname and add the A record. Have you tried this?

  5. #5
    Member
    Join Date
    Jul 2012
    Posts
    20
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Need help with Initial WHM setup, step 4 nameservers error

    I tried on two different VPS accounts on different companies, and both have this problem, i found the only way to solve the problem is create a new account in WHM using the domain name same as the your Host name, for instance, your VPS host name is vps.host.com, and you create a account by using host.com domain name. I'm not sure if this happens to Dedicated server as well, or only happens on VPS account or it supposes to be like this.

    Quite confusing for new users which trying to avoid any errors pop on your screen.

    Sean

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Need help with Initial WHM setup, step 4 nameservers error

    An internal case exists for this issue. If the domain doesn't already exist on the machine, then the hostname (a subdomain off that domain) will fail when trying to add the A record. It happens for all environments, so VPS and dedicated alike. The case number is 59400

    This is fixed in 11.32.4.6 and higher which is only currently in EDGE tier:

    http://httpupdate.cpanel.net/

    The changelog has the case listed at http://go.cpanel.net/changelog
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    BANNED
    Join Date
    Apr 2012
    Location
    Utah
    Posts
    117
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Need help with Initial WHM setup, step 4 nameservers error

    I can get around that issue and setup your DNS no problem whatsoever and helping people with DNS setup is something that I also typically don't charge anyone to do, often I just help people with that as a favor to anyone who typically asks me for my help since it usually only takes a few very quick moments to get DNS setup properly.

    I actually have to leave right now and drive across town so I don't have much time to write a lengthy instruction message for everyone on how to properly setup DNS on Cpanel or getting around the "invalid domain" issue on the current release but if I get a few free moments, I can try to come back and do that so that everyone can know the ins and outs of what needs to be done to setup the DNS nameservers in more in depth detail.

    The super quick basic overview though ---
    Code:
    1.   You need the DNS hostnames and IP registered under your domain at your registrar where you 
          originally purchased your domain name.
    
    2.   You need the same DNS hostnames and IPs listed in /etc/nameserverips
    
    3.   You need the DNS zone for your primary DNS domain added to your server either as a Cpanel account
          (if you will have a website on your primary domain) or as a DNS zone file alone (if no website) and in
          the zone file for your primary DNS domain, you need both NS and A records setup with the DNS hostnames
          and related IP information for your new DNS servers.
    
    4.   In the "Basic Settings" section of WHM and/or reseller config whichever is applicable, you also need to setup
          the same DNS hostnames so that any new domains added to the server will automatically build DNS zone files
          which already by default point to the correct DNS hostnames.
    On the issue of Cpanel rejecting the domain, you mainly need to add the domain to the server first per item #3 above and add an "A" record to the zone for the primary IP to be used for that domain itself. If that domain won't be having it's own website, just simply give it an "A" record with the primary IP address of your server.

    That's really basically all there is to it. I don't really have time at the moment to go into a more lengthy discussion on DNS setup but the above is the main basic essentials of what you need to do.


    EDIT: PS: Do NOT put your DNS hostname(s) and/or IPs in "DNS resolvers" or directly in the '/etc/resolv.conf' file! A very common mistake people often make is putting their own DNS hostnames in that section. Actually the DNS resolvers have nothing to do with the DNS resolution of any of the domains on your server. It's instead used to resolve domains elsewhere not located on your server such as being able to connect to Cpanel to download updates and so forth. You would not normally use your own hostnames or server IPs as the DNS resolvers.
    Last edited by NetMantis; 07-11-2012 at 10:13 AM.

Similar Threads

  1. Possible to set WHM to redo initial setup process?
    By thernes in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-23-2011, 03:22 PM
  2. Log from WHM Initial Setup
    By parisi in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-18-2010, 10:49 PM
  3. Bug with AIM in WHM Initial Setup
    By Iain Kay [XN3] in forum New User Questions
    Replies: 0
    Last Post: 06-27-2009, 09:24 AM
  4. Need Step-by-Step Instructions to Setup First Domain
    By korneld in forum New User Questions
    Replies: 1
    Last Post: 02-25-2009, 08:54 PM
  5. XSkin initial WHM setup broken
    By MarlboroMan in forum Themes and Branding
    Replies: 2
    Last Post: 07-17-2003, 08:46 PM