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.

multiple domains 1 IP address cPanel & WHM configuration

Discussion in 'Bind / DNS / Nameserver Issues' started by Daniel Boris, Nov 16, 2015.

  1. Daniel Boris

    Daniel Boris Member

    Joined:
    Sep 29, 2015
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Montpellier
    cPanel Access Level:
    Root Administrator
    Hi there,

    I have 1 VPS with 1 static ip and 2 domain names. / example1.com example2.com
    Each of this domains are different websites and should be 2 different accounts if possible

    My server's hostname is something like hostname.example1.com

    example1.com works well however I can't make example2.com work.

    I have created 2 cPanel accounts, each with one domain name and both have similar settings.

    In order to make example2.com work properly I've read that I should create subdomains of example1.com that point to the example2.com

    How do I get along with this knowing that I'm a total newbie here.

    My settings are the following:

    DNS example1.com:
    example1.com 14400 NS dns200.anycast.me
    example1.com 14400 NS ns200.anycast.me
    mx1.exampel1.com 14400 MX 0 example1.com.
    mx2.example1.com 14400 MX 10 example1.com.
    example1.com. 14400 A 123.456.xxx.xx
    reverse.example1.com 14400 A 123.456.xxx.xx
    hostname.example1.com 14400 CNAME example1.com.
    www.example1.com 14400 CNAME example1.com.

    DNS example2.com:
    example2.com 14400 NS dns200.anycast.me
    example2.com 14400 NS ns200.anycast.me
    mx1.exampel2.com 14400 MX 0 example2.com.
    mx2.example2.com 14400 MX 10 example2.com.
    example2.com. 14400 A 123.456.xxx.xx
    reverse.example2.com 14400 A 123.456.xxx.xx
    www.example2.com 14400 CNAME example2.com.

    I have a feeling that I should do something like:

    example2.example1.com -> www.example2.com | example2.com

    point the IP address to example1.com and point example2.com to a subdomain of example1.com

    Any information, relevant tutorials and examples are super welcome!

    Thank you
     
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi :),

    Have you added example2.com under example1.com as Addon Domain? If so, it will create sub-domain automatically as example2.example1.com pointing to example2.com.
    If you have created separate cPanel Account for example2.com, then it will create DNS zone as you mentioned only. Just you will need to make sure that the nameservers are correctly updated for example2.com, so that the domain will get resolved to your server.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page