Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can I create sub domains if not using local DNS?

Discussion in 'Bind/DNS/Nameserver' started by iambaz, Aug 29, 2016.

Tags:
  1. iambaz

    iambaz Registered

    Joined:
    Aug 29, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hypothetically, if I have a domain 'example.com' which uses the domain registrar's DNS servers and has an A record pointing at my server's IP, can I still use cpanel on the server to create sub domains or must they be created at the registrar's control panel?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,161
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sub domains are created on your server from the cPanel account, not at the registrar.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. iambaz

    iambaz Registered

    Joined:
    Aug 29, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    So what happens if I do set up a sub domain at the registrar? For example; I have a cpanel server at 1.1.1.1 and in Namecheap, I have a domain 'example.com' with the following settings:

    A record : example.com. : 1.1.1.1
    A record : subdomain : 2.2.2.2

    In this case the FQDN 'subdomain.example.com' points to 2.2.2.2, and example.com points to my cpanel server at 1.1.1.1. So under these circumstances, if I added 'subdomain2' as a subdomain on my cpanel server, would both of the sub domains work?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,671
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, as long as the IP address you use for the subdomain's "A" record matches the IP address assigned to the cPanel account it's added under.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    iambaz likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice