Top Videos

How to set up DNS records for your domain in Cloudflare account

There are two ways to enable Cloudflare for your domain name:

1. By means of a CNAME record for www.domain.com. 

NOTE: CNAME setup is available for paid Business or Enterprise Cloudflare plans. 

2. By pointing a domain name to Cloudflare nameservers which is possible after signing up with Cloudflare, but additional steps below should be performed in order to make your domain work properly. 

Once you have signed up, you will be redirected to configuring your first domain name. You will need to enter your domain name you would like to enable Cloudflare for and click on Add site:

Cloudflare DNS setup 1

On the next page you will need to choose a prefereable CDN plan. You can choose the Free plan by a default. Click on its icon and the Confirm plan button to proceed: 

Cloudflare DNS setup 2

You may purchase one of the paid Cloudflare plans later if you wish to get more features. You can compare these plans at https://www.cloudflare.com/plans. 

On the next screen, you will see the list of your existing host records. Be sure to double-check if the specified DNS records match the ones in your cPanel. 

Cloudflare DNS setup 3

NOTE: It is not recommended to modify DNS records at this stage as you will be able to do this after the setup is complete. 

If records shown in the list are correct, you can scroll down and click Continue: 

Cloudflare DNS setup 4

On the next page, you will be offered to change nameservers to the Cloudflare ones: 

Cloudflare DNS setup 5

If your domain is registered with another domain registrar, you need to log into your account there and change the nameservers for the domain. 

If your domain is registered with Namecheap, you need to follow the instructions below: 

1. Log into your Namecheap account in a separate tab if you are not logged in yet. Once you are in, mouse over the Account option in the upper right corner of the page and choose Domain List or choose the Domain List menu in the left sidebar:

Cloudflare DNS setup 6

Cloudflare DNS setup 7
2.Click on the Manage option in front of the domain name you wish to point to Cloudflare DNS:

Cloudflare DNS setup 8
3. On the Domain tab, please click the drop-down menu next to the Nameservers option and select Custom nameservers type:`

Cloudflare DNS setup 9

4. Enter the nameservers specified in the Cloudflare account, then click on the check-mark:

Cloudflare DNS setup 10
NOTE: Once the nameservers have been set up, it may take up to 24-48 hours (in rare cases more) for local ISPs to update their DNS caches so that everyone can see your website. Since the caching time varies between ISPs, it takes time for DNS changes to be totally in effect.

Once the nameservers are set up, return to the Cloudflare tab and click Check nameservers:

Cloudflare DNS setup 11
If the nameservers have been successfully updated, you will see the Active status:

Cloudflare DNS setup 12

Now you may proceed with setting up DNS records in the DNS menu. On the DNS Records page (1), you may add or delete the DNS records for your domain. In order to add any record, click +Add Record (2) and choose the record type you need, the hostname (subdomains or domain itself) and value of the record (3). TTL will be set up automatically. When the record is ready, click on Save (4). Also, you may deactivate or activate the Cloudflare service for each record by clicking on the orange/grey cloud under the Proxy status column (5):

Cloudflare DNS setup 13


NOTE: After the nameservers change all the DNS records for your domain in cPanel will be no longer active. That is why make sure they have been set up in your Cloudflare account. The new DNS records should be created in the Cloudflare account as well. For instance, if you wish to switch to another mail service or update the IP address for your domain, the MX and A records should be updated correspondingly.

That's it!

Post a Comment

0 Comments