简体   繁体   中英

Pointing the root domain to Heroku

I have an app on Heroku, but I can't get the naked root domain to work.

I have a CNAME record for www.mydomain.com pointing to my app.herokuapp.com

I can't create a CNAME for mydomain.com, domain provider tells me I need to do it through an A record, that points to my IP address.

So, since Heroku won't give me that IP address, how can I proceed?

Thanks

DNS RFC (RFC1033) requires the "zone apex" (sometimes called the "root domain" or "naked domain") to be an "A Record," not a CNAME.

CloudFlare provides a feature called CNAME Flattening which essentially solves this problem for you.

Read more: https://blog.cloudflare.com/zone-apex-naked-domain-root-domain-cname-supp/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM