Naked/Root domain with heroku, Squarespace or other SaaS service

Shunsuke Sawada

We wanna use root domain!

When you are using heroku, Squarespace or other SaaS based service, you may want to use your domain instead of the domain you got from them.

You get something like this:

but you want to make it like this:

also you want to user root/naked domain:
(this is called root domain or naked domain)

To achieve this, you need to change DNS setting as recommended in documentations like Custom Domains.

There are two ways.

  1. CNAME functionality at the apex
  2. Subdomain redirection   I would say the second one is easier because not so many domain register provide apex function at this moment or sometimes you may have no choice about DNS server.

Subdomain redirection

For subdomain redirection, you set CNAME and domain forwarding. If your DNS server provides domain forwarding function, you can simply follow this heroku instruction. If you are using Amazon Route 53, just follow this.
However, if your DNS server DOES NOT provide domain forwarding function, is there no way to use naked/root domain?


This is where comes in. They provides naked domain redirect for free. The only thing you need to do is just pointing your naked/root domain to "" then it'll be redirected to the subdomain with "www" in front.

So your domain setting is someting like this:

A record:

Provided domain from Saas like, ...

I didn't use wwwizer since I'm used to Amazon Route 53, but when I don't have fully control about a project, wwwizer turned out so handy for me.
That's it. Though, I think it's a rare case that you can't use domain forwarding function.

Shunsuke Sawada


Rails whereの検索で否定を使う