---
title: "How do I attach Cloudflare DNS to my account?"
url: "https://ploi.io/documentation/dns/how-do-i-attach-cloudflare-dns-to-my-account"
published: "2018-08-19"
last_updated: "2024-10-29"
---

# How do I attach Cloudflare DNS to my account?

**Note: Each key that you save with us, is saved encrypted for security reasons.**

You will first need to get your [API key from Cloudflare](https://dash.cloudflare.com/profile/api-tokens) and create a new token.

![Cloudflare API tokens](/storage/images/ff5e712d-97c4-40c3-ab54-7d0e8fcb7440.png)Use the **Edit zone DNS** template for your API key:

![Edit zone DNS](/storage/images/b6a8196f-afdd-4d20-91fe-c6b7d7fc36d6.png)

Then, we advise having all zones included so that Ploi can always try to set up DNS management for you whenever you create a new domain. Also make sure to have the Cache Purge permission so you can clear the Cloudflare cache from the Ploi panel.

![All zones](/storage/images/a8cac977-f437-4644-828a-dda9d254c0ff.png)

Enter this key inside your profile, under the [Integrations](https://ploi.io/profile/integrations) tab in your profile. When entering this key, we will automatically verify to see if your key is valid.

After adding your key, you can start adding keys to the domains you own in Ploi. Select a domain in Cloudflare and grab the 'Zone ID', this is displayed on the dashboard of the domain.

Once you have the Zone ID, you can go to your domain in Ploi and go to the 'Settings' tab inside your domain. You will find the possibility to add the Zone ID there. After you have done that, DNS management is available in the 'DNS' tab on the left side.

![](https://ploi.io/storage/1NJfbwl5RslR6wQS0qoNLqYJR6L9qtIb3XEHBK2A.png)