How to Map a Domain from Cloudflare?

How to purchase a domain from Cloudflare and map it to your Hashnode blog.

Cloudflare is a free CDN that protects against threats like SQL injection and identity theft. It improves site performance and speeds up loading times by using multiple data centres located around the world.


Cloudflare makes mapping a domain to Hashnode easier because it supports CNAME Flattening, which allows you to create a CNAME record at the root level.

The steps below explain the entire process of mapping a domain to Hashnode through Cloudflare:

  1. Create or Login to your Cloudflare account.

  2. Add your domain nter your root domain. For instance, if your website is www.edidiongasikpo.com, enter edidiongasikpo.com into the input field.

  3. Click on the Add site button to enable Cloudflare to validate your domain.

  4. After Cloudflare has validated your domain, you will be redirected to Cloudflare's payment page.

  5. Here, select the Free plan and click on the Confirm plan button. Cloudflare will scan through the root domain you added for DNS records and import it automatically into your Cloudflare configuration.

    1. When the scan is completed, your DNS records (if available) will appear on your screen. Go through the imported DNS records to confirm if they've been identified correctly. If they've not been added, you can manually add the missing DNS records.

    2. To add Hashnode's DNS record, click on the Add record button.

    3. In the input field, add the details below:

Type

Name

Target

TTL

Proxy Status

CNAME

@

hashnode.network

Auto

DNS Only

This is what your DNS record should look like:

The Proxy status must be DNS Only. To ensure it is DNS only, click on the orange cloud icon (proxy enabled). Once you click on the orange cloud icon, it will automatically change to a grey cloud icon (DNS only).

Crosscheck that everything is correct and click on the Save button.

  1. At this point, you've successfully mapped your domain to Hashnode through Cloudflare. But you need to do one more thing to enable Cloudflare to manage your DNS records. So, click on the Continue button to proceed.

Enable Cloudflare to manage your DNS records.

By allowing Cloudflare to manage your DNS records, you gain access to the different benefits that Cloudflare offers and optimize your site.

Here's how to enable Cloudflare to manage your DNS records.

  1. Log into your registrar account. In my case namecheap.com.

  2. Remove your current nameservers.

  3. Replace it with Cloudflare's nameservers. Cloudflare will provide the nameserver for you. In my case, it was daniella.ns.cloudflare.com and fred.ns.cloudflare.com

  4. Click on the Save button to complete the update.

  5. You will receive an email when the nameservers associated with your domain have been updated.

Registrars (In my case, Namecheap) typically process nameserver updates within 24 hours.

You can use any DNS Propagation Checker of your choice to check the current state of your DNS propagation.

Updated on