Custom root domain on Heroku

前端 未结 3 1455
粉色の甜心
粉色の甜心 2021-02-02 17:39

I have a domain, example.com, that I want to use for my rails-app that resides at example.herokuapp.com and I\'m pretty confused how to go about to do this.

Heroku says

3条回答
  •  一个人的身影
    2021-02-02 18:20

    If you look at DNS records specification you'll find no such record as ANAME.

    The best way to solve this problem is: Make CNAME entry for www subdomain to your heroku app, and CNAME record for root domain to www subdomain.

    • www.domain.com. 3600 IN CNAME app.herokuapp.com.
    • @ 3600 IN CNAME www.domain.com.

    P.S. It works, and do not make you waste money for mystic DNS records

提交回复
热议问题