multiple domains 1 IP address cPanel & WHM configuration

Daniel Boris

Member
Sep 29, 2015
9
1
3
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
 

24x7ss

Well-Known Member
Sep 30, 2014
272
19
68
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.