1
votes

I am attempting to follow the documentation from Heroku to add a custom domain name for my Ruby on Rails application. In my CLI I have added the domain and it is viewable when I run heroku domains:

The Domain Name points to my address and the DNS Target points to my Heroku App address.

Inside my domain registrar, (GoDaddy), I set the CNAME to my Heroku address. The domain has propagated for enough time and it just displays that it is being parked when I access it.

What am I doing incorrectly?

1
Do you paid heroku ssl ?Gearnode
@Gearnode No I have not.Jonathan Musso

1 Answers

2
votes

I had a very similar problem with Godaddy except I was also dealing with not only forwarding www.something.com to my herokuapp but also the something.com forwarding to the same app (without the www).

Here's what I suggest you do

Check in your heroku settings under domains you have something like this

   domain_name: www.something.com    DNS_Target: something.herokuapp.com
   domain_name: something.com        DNS_Target: something.herokuapp.com 

On Godaddy, under domain details > settings, make sure your forwarding looks like this

    Forwarding:   Domain: http://something.herokuapp.com/(forward only)

Now under the DNS Zone file make sure you have a CNAME (Alias) record that looks like this below ... ps. this section has a (page 1 of 2) pagination at the bottom of the CNAME section if you don't see your record it could be on the next page

  host: www   points_to: something.herokuapp.com   ttl: 600 seconds  

now the important part is under your A (Host) records you need to change the @ host to point to a this exact ip address ...

  host: @   points_to:   174.129.25.170   ttl: 600 seconds

when i dealt with this problem, this SO question/answers helped me do that ^ which solved my issues. Especially the @ points_to that ip address