The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I create sub domains if not using local DNS?

Discussion in 'Bind / DNS / Nameserver Issues' 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:
    14,477
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sub domains are created on your server from the cPanel account, not at the registrar.
     
  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:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
    iambaz likes this.
Loading...

Share This Page