How to Setup Heroku with GoDaddy

I don’t know about you, but setting up domain configurations is one of the least fun parts about building and launching a site for me.

Setting up GoDaddy and Heroku was a particularly frustrating experience and I thought I’d try and help you avoid the same pitfalls.

As it turns out, it’s impossible to perfectly get Heroku and GoDaddy to play together well, but below is as close as you can get.

  1. Most platforms give you a CNAME record to point your www subdomain to, and then some IP Addresses for your A records to point to. Heroku only provides CNAME records and ANAME or ALIAS records GoDaddy does not have.
  2. You can add Custom Domains on the Heroku site, but the domain format isn’t clear, should I add the www subdomain and the “naked” domain, one, or the other?
  3. When you do add a Custom Domain in Heroku, the domain to point to is cut off on the Heroku website.
  4. SSL requires you to upgrade to a Hobby Plan in Heroku, and then https needs to still be managed somewhat carefully on the DNS side.

Going to:

All work and end up, without scary warnings, at

Getting “” to go to your website without a scary warning is not something that is possible today when using GoDaddy.

Heroku documents why over here:

Thank you @Aidlab for providing the link and context.

In Heroku:
1. The ONE domain you need to set up is the WWW version,, do not set up
2. Pay $7 a month to upgrade to the hobby plan because your site will load faster and you can have https://

In GoDaddy:
1. Add a CNAME record for “www” pointing to the site Heroku provides
2. Set up Domain Forwarding to point to the “https” version of your “www” domain.

Step by Step Guide:

Step 1: Add your Custom Domain
Use the Heroku CLI to add your domain instead of doing it from the web application. Ensure you add the “www” version instead of just “”

heroku domains:add

Step 2: Retrieve the DNS Target
If it’s not already there, you can always type the following to get a list of your domains

heroku domains

Step 3: Double check SSL is enabled
If you’re like me and weren’t on a paid project when setting up your custom domain, you need to log in to Heroku and go to your Application Settings page and enable SSL.

Step 0: Capture Original State
Before making changes, always take a screenshot or note of what settings looked like

Step 1: Remove Extraneous A Records
Remove any A records pointing to other IP Addresses from past projects or the GoDaddy defaults.

Step 2: Add a CNAME Record
Your CNAME record will have
Name = www
Value = Heroku domain from Step 2 above

Step 3: Set up Forwarding
Heroku mentions setting up ANAME or ALIAS records, GoDaddy does not have that. Instead, that is done through Forwarding. I personally spent way too long here trying to figure that one out…

You want to forward with the “https://” protocol to your “www” sub-domain.

Hopefully this saved you a few clicks and minutes. Like all domain stuff, there can be some nerve-wracking minutes while things propagate, but hopefully this will allow things to make much more sense!

Field Engineering Manager at Scale AI | At the intersection between Customers and Code

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store