CNAME records and addon/parked domains

Joe Goldman

Member
Oct 18, 2011
7
0
51
Coffs Harbour, New South Wales, Australia
cPanel Access Level
DataCenter Provider
Hi *,

Interesting problem i've run into, that I couldn't find many definitive answers for. On our server we have 2 websites as seperate accounts, lets call them domain1.com and domain2.com. domain1.com set up a subdomain test.domain1.com, then set up a CNAME record on domain2.com for test.domain2.com to point to test.domain1.com.

This is all good and well done in cPanel, however we need the host header to be recognised on the test.domain1.com account. When i go to add test.domain2.com either as a parked or addon domain (with the same webroot as test.domain1.com), then it throws an error saying that test.domain2.com is on another account, which technically it is, but only as a CNAME record. Is this normal behaviour? What would be the steps required to achieve what I'm after? A http redirect is out of the question, as they client does not want the URI to change, when someone types in test.domain2.com, they want it to stay test.domain2.com not become test.domain1.com, hence the use of a CNAME.

All help is appreciated :)

Thanks,
Joe Goldman
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

The CNAME entry is not required in this case. Instead, simply add "test.domain2.com" as a parked domain. This will allow "test.domain2.com" to remain as the URL address in the browser, and point to the same document root as the domain name it is parked on.

Thank you.
 

Joe Goldman

Member
Oct 18, 2011
7
0
51
Coffs Harbour, New South Wales, Australia
cPanel Access Level
DataCenter Provider
Hi Michael,

I attempt to do that, even after removing the cname record from domain2.com, yet i still get an error trying to add test.domain2.com as a parked domain to domain1.com, it tells me "Error from park wrapper: test.domain2.com is controlled by another user. You cannot park it."

Should I log an official ticket for this?

Thanks,
Joe
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Yes, feel free to open a ticket for this so we may check further. You can use the following URL:

Submit A Ticket

Please post the ticket number here so we may track the issue.

Thank you.