Dennis Hackethal’s Blog

My blog about philosophy, coding, and anything else that interests me.

Setting Up a Heroku Root Domain with Squarespace Domains

Published · 1-minute read

With Google Domains transferring all of their domains to Squarespace, a lot of people need to know how to point their root domains to their Heroku apps.

First, as explained in the Heroku docs, add your root domain:

$ heroku domains:add example.com -a example-app
Adding example.com to ⬢ example-app... done
▸    Configure your app's DNS provider to point to the DNS Target
▸    whispering-willow-5678.herokudns.com.
▸    For help, see https://devcenter.heroku.com/articles/custom-domains

The domain example.com has been enqueued for addition
▸    Run heroku domains:wait 'example.com' to wait for completion

Take note of the DNS target. Here, it’s “whispering-willow-5678.herokudns.com”, but for you it will be different.

Then, in Squarespace, under Domains → example.com → DNS → DNS Settings, add a custom record. Set the host to ‘@’ (without quotes), the type to ‘ALIAS’, and the data to the DNS target Heroku gave you. Note that a CNAME record will not work for root domains.

After a few minutes, your root domain should point to your Heroku app.


What people are saying

What are your thoughts?

You are responding to comment #. Clear
Markdown supported. cmd + enter to submit. You have free speech here. You’re responsible for what you write. Terms, privacy policy
Your real name is preferred.
This small puzzle helps protect the blog against automated spam.

New Sign your comment with GPG to create or add to a public profile with all your comments.

Paste a detached signature of your comment.

              
Paste your public key if you haven’t before. You consent to your key’s contents, including your name, being displayed to the public.

              

Preview