How to Use a Root Domain as a CNAME for UptimeRobot

I recently bought the status.cc domain to use for my UptimeRobot dashboard. Uptime Robot allows for utilizing a custom domain for the status page instead of their more generic url. As great as this has been for me, I've only ever used it with subdomains.

Having a domain such as status.cc speaks for itself, so having a subdomain like status.status.cc doesn't make any sense. This is problematic, however, because a limitation of UptimeRobot's custom domain service is that it's limited to subdomains.

To work around this, I was able to prefix the domain with www to get around this limitation. This solved the subdomain problem, but would normally require explicitly typing www.status.cc, which is a bit annoying in a modern setting. To get around this, I added a permanent redirect to automatically redirect so that status.cc automatically becomes www.status.cc.

How-To

In order to accomplish this, I needed to do the following:

UptimeRobot

  • Log into UptimeRobot and select Status Pages.
  • In Custom Domain, input www.status.cc.
  • Save the new custom domain.

Cloudflare

  • Log into Cloudflare and navigate to the status.cc domain.
  • Open DNS and add the following two records:
TypeNameContentTTLProxy status
CNAMEstatus.ccwww.status.ccAutoProxied
CNAMEwwwstats.uptimerobot.comAutoProxied
  • Configure the remaining Cloudflare settings as per usual.

Outcome

At this point, navigating to https://status.cc should automatically redirect to https://www.status.cc, which works around the subdomain requirement by making www the subdomain.

References

← All notes