If you’d like to start using Cloudflare as your DNS provider:
1. Create a Cloudflare account here
2. Add your domain
3. Select the free plan
4. Cloudflare will try 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.
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.
How to set up a root (non-www) domain on Cloudflare
1. In your Strattic Dashboard, go to your site, and then click on “Details” and then “Domain settings”
2. Enter your custom domain (i.e. yourdomainname.com)
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”.
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.
5. Add the CNAME into Cloudflare like in the screenshot below. For the “Name”, you’ll just need the initial part (e.g. _d2d081aafd36c470a1b632f29ddb63d5111) and you don’t need to include your domain name. Please make sure to use Proxy status of “DNS only” by clicking on the cloud icon
6. Please wait up to 30 minutes for this verification process to complete.
7. Click “Next” in the Strattic Dashboard
8. You’ll see a CNAME like this:
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
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”
11. Cloudflare then leads you through a few optimization questions - you can leave all the defaults.
12. Go to Page Rules
13. Create a page rule as follows:
If the URL matches: *www.yourdomainname.com/*
Forwarding URL: https://yourdomainname.com/$2
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 :)