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!

multiple domains 1 IP address cPanel & WHM configuration

Discussion in 'Bind/DNS/Nameserver' 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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,323
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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