If you’d like to start using Cloudflare as your DNS provider:

Step 1.
Create a Cloudflare account here

Step 2.
Add your domain

Step 3.
Select the free plan

Step 4.

Cloudflare will perform a quick scan to pull in your existing DNS records which is pretty sweet since it saves you an extra step of copying in your DNS records manually.

Verify that DNS records below are configured correctly, then press Continue.

Step 5.

Cloudflare will present you with NS records which you’ll need to add to your domain registrar (e.g. GoDaddy, name.com, etc)

PLEASE NOTE: If your email is configured through your DNS records, this step will likely result in a few minutes of downtime for your email.

Step 6.

Cloudflare then leads you through a few optimization questions - you can leave all the defaults.

How to set up a root (non-www) domain on Cloudflare

(e.g. https://yourdomainname.com)

Step 1.

In your Strattic Dashboard, go to your site, and then click on “Details” and then the “Domain settings” tab.

Step 2.

Enter your custom domain (i.e. yourdomainname.com)

Step 3.
You’ll then see a checkbox to acknowledge that your DNS provider supports ANAME/AAAA/Alias DNS records. Check the checkbox and click “Submit”.

Step 4.
After you click submit, you'll see a CNAME record displayed that is used to verify that you own this domain so that the SSL certificate can be generated.

Step 5.

Add the CNAME into Cloudflare like in the screenshot below.

For the “Name”, you’ll only need the initial part
(e.g. _d2d081aafd36c470a1b632f29ddb63d5111) and you don’t need to include the domain name.

Please make sure to use the Proxy status of “DNS only” by clicking on the cloud icon.

Step 6.
Please wait up to 30 minutes for this verification process to complete.

Step 7.
Click “Next” in the Strattic Dashboard

Step 8.
You’ll see a CNAME like this:

Step 9.
Add the next CNAME record that displays in the Strattic Dashboard to Cloudflare as follows. Please make sure to use Proxy status of “DNS only” by clicking on the cloud icon

Step 10.
Add a new CNAME record to Cloudflare as follows with www for the "Name" and your domain name as the "Target". Please make sure to use Proxy status of “Proxied”

Step 11.
Go to Rules > Page Rules, then click the Create Page Rule button.

Step 12.
Create a page rule as follows:

If the URL matches: *www.yourdomainname.com/*

Forwarding URL: https://yourdomainname.com/$2

Step 13.

SSL in Cloudflare should be set to "full"

Step 14.

That’s it! You may need to wait up to 24 hours for the DNS to finish propagating properly.

Also, don’t worry about the DNS record saying “Heads up!” in the Strattic Dashboard (it’s because of the root domain setup) - you’re still good to go 👍

Did this answer your question?