Cloudfare Domain Management

Our domain (gradientmetrics.com) is hosted and managed on a platform called Cloudfare.

You can use this platform to buy new domains or add subdomains to our already purchased domains. Generally, we won’t be buying new domains too often, but we are adding subdomains quite frequently.

What is a Subdomain?

In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is a part of another (main) domain. For example, if a domain offered an online store as part of their website example.com, it might use the subdomain shop.example.com. See below for a few of our already existing subdomain examples:

As you can see, there are many use cases for subdomains. In the future, we want to start providing client dashboards, which will likely mean that they will get their own subdomains (e.g., czi.gradientmetrics.com). Or, even better, a global clients.gradientmetrics.com website where they can subsequently login to their own portal.

Managing Subdomains

Adding or removing subdomains can be done from the DNS registration. There are two ways to add a subdomain.

  1. A Type Record
  2. CNAME Record

Most of the times, you’ll be adding a subdomain based on the suggestions of a different website (that’s providing the content). E.g., on HubSpot or Softr.io.

Adding an A subdomain

Let’s run you through this using an actual example. For our roadmap.gradientmetrics.com subdomain, Softr requested us to create a new A type subdomain as instructed below:

Navigate to the DNS registration page and simply press Add Record and fill in the details according to the instructions. When it’s ready, it should look like this

Note that it can take up to a few hours for the DNS to register, so testing your subdomain may not instantly work.

Adding a CNAME subdomain

In other, more common instances, the website requires you to add a CNAME record. The process is the same, but this time you select the CNAME type instead of the A type. The difference here is that it doesn’t point to an IP Address but to another targeted website.

Take for instance this Handbook. It’s hosted on a website app called Netlify, and we need to tell the DNS that, instead of their subdomain, it should be pointing at a subdomain that we requested. See here for the example: