Configure CNAME Records per Domain?
I have two domains both on the same server and held within the same cPanel WHM;
domain1.com (which runs some email software - Sendy)
domain2.com (which i want to create a sub-domain on to server the contents of domain1.com)
Originally i thought it would be as easy as creating a CNAME record on domain2.com namely:
subdomain.domain2.com with the CNAME record
On doing this however you get the following rather than the contents of domain1.com appearing:
subdomain.domain2.com/cgi-sys/defaultwebpage.cgi
I've
-
Hi @sabian1982 The A record is automatically created but you can change it to a CNAME instead if that's what you need. The A records and CNAME records for the domain can't exist at the same time so it'll need to be one or the other. 0 -
Hi @sabian1982 Did you every solve this? I have the same issue and am getting no where, if you can let me know how to resolve that would be great. Many Thanks I have two domains both on the same server and held within the same cPanel WHM; domain1.com (which runs some email software - Sendy) domain2.com (which i want to create a sub-domain on to server the contents of domain1.com) Originally i thought it would be as easy as creating a CNAME record on domain2.com namely: subdomain.domain2.com with the CNAME record and attempted to create the CNAME and add an alias, but on attempting to add an alias If i setup a sub-domain, i then end up with an A record and although i can setup a redirect that essentially defeats the object of being able to have the CNAME functionality. Any thoughts on how to get around this? Is it worth trying to create the sub-domain first, then deleting the A record, and then adding a CNAME record?
0 -
Hello @GW816 Can you explain what you're having issues with exactly? Then we can most likely get you pointed in the right direction. 0 -
HI @cPanelLauren I need a cname entry that whitelabels the application mentioned above (Sendy) eg news.domain1.net actually shows the content from sendy.domain2.net but the URL stays the same, However when creating the cname it shows a cpanel 404 error. Any help would be appreciated Hello @GW816 Can you explain what you're having issues with exactly? Then we can most likely get you pointed in the right direction.
0 -
When you create a subdomain the A record is automatically created. If you don't want to make use of the A record its able to be removed/converted to a CNAME record. For instance, if I use domain1.com as an example and I wanted test.domain1.com to display the contents of domain1.com I would add the CNAME as follows: (the TTL can be modified to be a different/more suitable value) This is done where DNS for domain1.com is hosted. If I wanted domain2.com to display the contents of domain1.com it's easiest configured as an alias, this is configured by going to cPanel>>Domains>>Aliases -> Add domain - where DNS for domain1.com is hosted (domain2.com must have its nameservers or A record pointed to this server as well) If you're receiving an error when you're doing this I'd assume it's configured incorrectly. news.domain1.net actually shows the content from sendy.domain2.net but the URL stays the same, However when creating the cname it shows a cpanel 404 error.
Are you indicating that the CNAME works properly but when you create it within cPanel you get the 404?0 -
Hi @cPanelLauren It is hosted on the same server but different cpanel accounts. I have tried setting this up as an Alias however this seems to serve the main website domain1.com/ rather than where it needs to be which is domain1.com/dir When using a cname configured as described above I just get 404 messages. When you create a subdomain the A record is automatically created. If you don't want to make use of the A record its able to be removed/converted to a CNAME record. For instance, if I use domain1.com as an example and I wanted test.domain1.com to display the contents of domain1.com I would add the CNAME as follows: (the TTL can be modified to be a different/more suitable value) This is done where DNS for domain1.com is hosted. If I wanted domain2.com to display the contents of domain1.com it's easiest configured as an alias, this is configured by going to cPanel>>Domains>>Aliases -> Add domain - where DNS for domain1.com is hosted (domain2.com must have its nameservers or A record pointed to this server as well) If you're receiving an error when you're doing this I'd assume it's configured incorrectly. Are you indicating that the CNAME works properly but when you create it within cPanel you get the 404?
0
Please sign in to leave a comment.
Comments
6 comments