DNS configuration of Heroku configuration subdomain

I want 2 heroku apps to use the same domain.

I recently created a staging version of my Heroku app in a new app in Heroku. Everything works fine, but I want the url of my middleware to be similar to my production app. For example, the url of my work site is http://www.mysite.com and I want the intermediate url to be http://staging.mysite.com .

I am setting up a new CNAME record with a value. My DNS configuration looks like this:

Hostname    RecordType      Value
@           A               62.116.130.8
www         CNAME           myapp.herokuapp.com
staging     CNAME           staging-myapp.herokuapp.com

      

Does anyone have any experience trying this? I'm too cheap to pay $ 7 a month for DNS management through Zeringo or an equivalent service. I'd rather just live with the stage-myapp.herokuapp.com trick.

+3


source to share


1 answer


After a few days, I returned to this problem. With the settings above, it works. I think this is just an unusually long time for changes that are propagating, or perhaps DNS flushing is not working.



+1


source







All Articles