Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Heroku Domain Not Resolving Properly

Tags:

heroku

dns

I am trying to use a custom domain for a Heroku app. My domain is registered on Dynadot.com. Below is a screenshot of my DNS configuration. Now my domain goes to a "No Such App" in Heroku, and adding www. just doesn't resolve anywhere.

dynadot

I'm trying to avoid using an addon for custom DNS management. This shouldn't be that complicated for a statically generated, free heroku app.

And yes, I did read all the documentation, and almost all Heroku custom domain questions on Stackoverflow. I followed the instructions and it still won't work.

Any ideas?

Thank you!

like image 290
darksky Avatar asked Mar 05 '13 17:03

darksky


People also ask

Does Heroku allow custom domain?

You can buy a custom domain name with a domain registration service. Add the custom domain to your app with the heroku domains:add command. Look up the Heroku-supplied DNS target for the custom domain using the heroku domains command. Configure your app's DNS provider to point to the Heroku-supplied DNS target.

Does GoDaddy support Heroku?

GoDaddy does NOT Support Heroku.

Can you CNAME a root domain?

A CNAME cannot be placed at the root domain level, because the root domain is the DNS Start of Authority (SOA) which must point to an IP address. CNAME records must point to another domain name, never to an IP address.


1 Answers

Heroku recommends your apex domain be forwarded to a www subdomain (or similar), and then that subdomain be a CNAME to your app-name.herokuapp.com. It looks like you have that backwards, your apex is pointing to app-name.herokuapp.com while your www points to reef-inc.com (which I assume is your apex?).

You also need to make sure your app has the correct domains added with $ heroku domains:add expected-domain.com

  • Custom Domains on Heroku
like image 83
catsby Avatar answered Sep 30 '22 12:09

catsby