Cloudflare
Preface
This tutorial will guide you through the steps necessary to host your DNS on Cloudflare using their free service. You can follow this guide whether your're using one of our hosting servers or one of our VPS plans.
About Cloudflare
Cloudflare is a global CDN (Content Delivery Network) and also a DNS (Domain Name System) hosting service which has both free and paid plans.
1. Create a Cloudflare Account
To begin, you will need to sign up for a free Cloudflare account here.
2. Setup Your Site on Cloudflare
Go to your Cloudflare dashboard and at the top of your screen click on Add site
:

Enter your domain (without www
) and click the Add site
button:

On the bottom of that page, select Cloudflare's free plan and click on the Continue
button:

Cloudflare will attempt to automatically detect and import your existing DNS records.
Manual DNS Record Import
If Cloudflare's automatic fetching fails or does not capture all necessary DNS records, you may need to manually import them.
Select the relevant text block for your server below, and save it as a text file on your computer.
Open the text file in a text editor and:
Replace the IP address placeholders (
##.##.###.##
and####:###:1:1ee::####
) with the IP addresses displayed inside your Plesk accountReplace the
yourdomain.com
text with your actual domain, without the leadinghttp://
orhttps://
For Johnny:
For Tommy:
For Morty:
Save and exit the text file, making sure you replaced all the IP address placeholders and the domain name placeholder with real values. Be careful not to change anything else, as this could break the DNS zone file.
Inside your Cloudflare dashboard, click on Import DNS Records
and select the text file you saved from the previous step to upload it to Cloudflare.

3. Configure DNS Records
After Cloudflare has imported your DNS records (automatically or manually via the text file), they will display your nameservers.
Copy and add both nameservers to your domain's nameservers setting inside your domain registrar's dashboard/panel.
Then, return to your Cloudflare dashboard and click on Done, check nameservers
in the Cloudflare dashboard.

Manual Cloudflare Configuration
If you want to manually configure your Cloudflare settings, then set the A
and AAAA
records for the base domain to the IPs shown in Plesk, and create a CNAME for www
that’s pointed to your domain.
To view the IP addresses to use for your A and AAAA records, follow the steps below:
Login > Plesk > Websites & Domains > [domain name] > and check at the bottom of the page.
Last updated
Was this helpful?