1👍
✅
It is not possible to set a CNAME
for the root example.com
.
Even if it were possible, you probably wouldn’t want to do it, since it would be saying “use the mail settings for myapp.heroku.com
for example.com
.
You would usually just set an A record for the root domain, but this is not possible because of heroku’s dyamic routing.
The heroku docs suggest that you set an ALIAS
or ANAME
record (these are custom record types, dependent on your DNS provider), or set up a subdomain redirection from example.com
to www.example.com
See the root domain section of the custom domains page on the heroku devcenter for more info.
Source:stackexchange.com