We’re excited to bring the power, performance, and security of Cloudflare’s global network to all Kinsta customers at no additional cost. In order to take advantage of Cloudflare, you’ll need to make a few configuration changes to your domain’s DNS settings.

In this article, you’ll learn exactly what you need to change to take advantage of our free Cloudflare integration for existing domains on Kinsta. If you’re adding a new domain, click here to read our guide on how to do that.

What Is an Existing Domain?

An existing domain is a domain that has already been added to MyKinsta. If your site is hosted on Kinsta and uses a custom domain (not a kinsta.cloud domain), this section applies to you.

The process for taking advantage of Cloudflare for an existing domain depends on whether the domain’s A records are already pointed to Kinsta. If your domain’s A records are already pointed to Kinsta IP address, you’ll be able to skip a few of the steps outlined below. Don’t worry, though, we’ll let you know which ones you could ignore!

Important

Existing domains that use Kinsta DNS will automatically be configured for Cloudflare over time. But if you’d like to get the new Cloudflare-powered features before your domain is automatically configured, you can manually do so by following the steps below.

Step 1 – Start Cloudflare Domain Configuration in MyKinsta

In MyKinsta, navigate to Sites > Your Site > Domains and click the Get Cloudflare button next to the domain you’d like to configure.

"Get Cloudflare" button in MyKinsta.

“Get Cloudflare” button in MyKinsta.

Step 2 – Verify Your Domain

If your domain is already pointing to a Kinsta IP address, you can skip this section and move to the next steps for pointing your domain to Kinsta.

Non-Cloudflare Domains

For non-Cloudflare domains that are not already pointed to Kinsta, you’ll need to verify the domain by adding two DNS TXT records. The exact process for adding the TXT records depends on whether you’re using Kinsta DNS or a third-party DNS provider.

Verify your domain in MyKinsta.

Verify your domain in MyKinsta.

TXT Record 1

  • Name: _cf-custom-hostname
  • Value: Unique UUID value from MyKinsta (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

TXT Record 2

  • Name: @ (if your DNS provider does not support “@”, you can leave it blank).
  • Value: Unique UUID value from MyKinsta (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

Here’s how you can add the TXT verification records if you’re using Kinsta DNS. Open MyKinsta in a new tab, navigate to Kinsta DNS, click Add a DNS Record, and select the “TXT” option.

Verify your domain with a TXT record.

Verify your domain with a TXT record.

For the first TXT record, use _cf-custom-hostname for the “Hostname” field, and your unique UUID value for the “Content” field. After you’ve verified the TXT record details, click Add DNS Record.

Add DNS TXT record.

Add DNS TXT record.

For the second TXT record, leave the “Hostname” field blank (Kinsta DNS doesn’t support “@” for the hostname), and use your unique UUID value for the “Content” field. After you’ve verified the TXT record details, click Add DNS Record.

Add DNS TXT record.

Add DNS TXT record.

After you’ve added the TXT records at your DNS provider, click OK, I’ve Done It.

Finish domain verification in MyKinsta.

Finish domain verification in MyKinsta.

Depending on your DNS provider, the TXT records may take up to 24 hours to propagate.

Step 3 – Point Your Domain to Kinsta

After your domain has been successfully verified, you can go ahead and complete the Cloudflare integration by pointing your domain to Kinsta.

Point domain to Kinsta.

Point domain to Kinsta.

Point Your Root Domain to Kinsta

In the “Point Your Domain to Kinsta” modal, you’ll see your “Site IP Address”. This is the IP address for your domain’s A record.

“Site IP Address” in MyKinsta.

“Site IP Address” in MyKinsta.

Next, go to your DNS provider and update your A record to point to your “Site IP Address”. If you’re using Kinsta DNS, here’s how you can update your A record:

  1. Open MyKinsta in a new tab, navigate to Kinsta DNS.
  2. Click Add a DNS Record, and select the “A” option.
  3. If you’re pointing your root domain, leave the “Hostname” field blank. If you’re pointing a subdomain, specify your subdomain in the “Hostname” field.
  4. Input your “Site IP Address” in the “IPV4 Address” field.
  5. Click Add DNS Record.
Create an A record in Kinsta DNS.

Create an A record in Kinsta DNS.

After adding the DNS record, go back to the “Point Your Domain to Kinsta” modal, and click OK, I’ve Done It.

Click “OK, I’ve Done It” after pointing your domain to Kinsta.

Click “OK, I’ve Done It” after pointing your domain to Kinsta.

Point Your WWW Domain to Kinsta

In addition to configuring a CNAME record for your root domain, we also recommend pointing the www version of your domain to Kinsta as well. To do this, add a CNAME record for your www domain pointing to your root domain.

Looking for high-performance WordPress hosting powered by Google Cloud Platform’s fastest servers? Check out our plans.

Create a CNAME record for your www domain.

Create a CNAME record for your www domain.

If you’re using Kinsta DNS, click on Add a DNS Record, and select the CNAME option. Use the settings below to add the CNAME record:

  • Type: CNAME
  • Hostname: www
  • Points To: Your root domain (e.g. brianwp.com).
  • TTL: 1 hour

Point Your Wildcard Domain to Kinsta (Optional)

We also support wildcard subdomains. A wildcard subdomain is a “catch-all” subdomain. For example, if you have three DNS records set up like this:

  1. A record for sub.domain.com pointing to 123.123.123.123.
  2. A record for sub2.domain.com pointing to 456.456.456.456.
  3. A record for *.domain.com pointing to 789.789.789.789.

Any request to a subdomain that is not sub.domain.com or sub2.domain.com will be automatically handled by the *.domain.com A record, and routed to 789.789.789.789.

If you would like to use the wildcard domain functionality on Kinsta, you can do so by creating an additional A record in Cloudflare with the settings below:

  • Type: A
  • Hostname: *
  • Points To: Your Site IP Address from MyKinsta
  • TTL: 1 hour
Add a wildcard A record for your domain.

Add a wildcard A record for your domain.

After adding a wildcard A record, accessing any subdomain that isn’t pointed elsewhere will result in the request being routed to Kinsta.

Step 4 – Force HTTPS (Optional)

A free SSL certificate (with wildcard support) is automatically added for verified domains with our Cloudflare integration. Forcing your site to load over HTTPS is optional but is recommended. To complete this step, go to the site in MyKinsta, then navigate to Tools and click on the Enable button under Force HTTPS.

Force HTTPS in MyKinsta.

Force HTTPS in MyKinsta.

Summary

Kinsta’s Cloudflare integration is designed to boost the security of your WordPress site. By configuring your domain to load behind Cloudflare, you’ll also be able to take advantage of more security and performance enhancements in the future.

If you have any questions about our setting up our Cloudflare integration on your site, feel free to reach out to our 24/7 support team!


If you enjoyed this tutorial, then you’ll love our support. All Kinsta’s hosting plans include 24/7 support from our veteran WordPress developers and engineers. Chat with the same team that backs our Fortune 500 clients. Check out our plans