Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Aug 2011
    Posts
    13

    Default Subdomains Not Working

    Greetings.

    I have a VPS and have just got the hosts to install WHM and cPanel.

    The problem I have is that any subdomain I create in cPanel doesn't work. Accessing the subdomain causes the browser say the page could not be found.

    What could be causing this?

    What details would you need from me in order to help me out?

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Subdomains Not Working

    What is an example of one of the subdomains for us to check the DNS entries for it?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Aug 2011
    Posts
    13

    Default Re: Subdomains Not Working

    My main domain is: thelosslessresistance.com

    The subdomain I created in cPanel is: forum.thelosslessresistance.com

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Subdomains Not Working

    When I check for any A record (IP) entry for DNS for that subdomain, I don't get any return:

    Code:
    $ dig +short forum.thelosslessresistance.com 
    $
    When I check the main domain, I show the following:

    Code:
    $ dig +short thelosslessresistance.com
    213.152.177.138
    
    $ dig +short thelosslessresistance.com ns
    ns33.domaincontrol.com.
    ns34.domaincontrol.com.
    I'm pretty certain that ns33.domaincontrol.com and ns34.domaincontrol.com are GoDaddy parked nameservers, which means you aren't using nameservers on the server itself. This means the cPanel machine DNS zones that are created won't be used, since the nameservers being queried aren't on the cPanel machine.

    If you want to have DNS zone entries updated when you create subdomains on the cPanel machine, you would need to use the nameservers on the server itself. If those nameservers haven't been created, you'd first need to go to GoDaddy and setup private nameservers.

    Otherwise, if you continue to use the GoDaddy parked nameservers, you will have to create a record for each subdomain at GoDaddy and point it to the IP, which appears to be 213.152.177.138
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Aug 2011
    Posts
    13

    Default Re: Subdomains Not Working

    Thanks for you help

    Would I create private nameservers like this:

    ns1.thelosslessresistance.com
    ns2.thelosslessresistance.com

    and would I enter these in my WHM control panel and my domain manager (where I purchased the domain)?

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

    Root Administrator

    Default Re: Subdomains Not Working

    Right, you'd want to create nameservers such as you've noted. In WHM > Basic cPanel & WHM Setup area, you'd enter those as the nameservers, then click "Add an A entry for this nameserver" for each one. If the IP you want for the nameserver isn't listed, manually enter that IP.

    At GoDaddy, you'd need to register the nameservers first in your domain manager there. That would be by clicking on the domain, then adding them in Host Summary (add) area (you'd click on the "add" link). The Host Summary is listed to the bottom left when viewing the domain directly in GoDaddy's Domain Manager. After you've registered the private nameservers there, then you can change to using those nameservers at GoDaddy in Nameservers > Set Nameservers
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member
    Join Date
    Aug 2011
    Posts
    13

    Default Re: Subdomains Not Working

    Great, thanks very much for the assistance

Similar Threads & Tags
Similar threads

  1. Subdomains not working
    By Paradox Servers in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-29-2009, 02:00 AM
  2. Subdomains not working
    By certit in forum New User Questions
    Replies: 3
    Last Post: 10-29-2008, 10:26 AM
  3. Help... Subdomains not working in IE
    By bapline in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-19-2008, 07:46 PM
  4. Subdomains not working at all
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-16-2008, 01:39 PM
  5. subdomains not working
    By bam in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 01-05-2003, 03:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube