Reputation: 1406
I am using Heroku app and need to point domain to that server. It is working correctly when I am using www subdomain, but when I try to setup it for root domain I cant enter @ in CNAME name because WHM is not allowing. I have used * in CNAME and it redirected all to www subdomain, but I dont need to redirect from root to www, I need root to point to root, and subdomain to that subdomain.
I cant get enter this @ in name field like on picture, I dont use this tool as is on picture, I have WHM.
I am folowing this instructions devcenter.heroku.com/articles/custom-domains#root-domain but I am not successful
What should I do.
Upvotes: 0
Views: 1463
Reputation: 1455
It is illegal in terms of the RFC 1034 rules for domain names to have a CNAME and any other record present in a particular node. The root node has to have at least an SOA record, and so you cannot use a CNAME in the root node.
The reason for this is as follows (RFC 1034) -
A CNAME RR identifies its owner name as an alias, and specifies the corresponding canonical name in the RDATA section of the RR. If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different. This rule also insures that a cached CNAME can be used without checking with an authoritative server for other RR types.
Also see this blog - Why it's a bad idea to put a CNAME record on your root domain
Try redirecting the naked domain up to a sub-domain such as www
Upvotes: 1