Cloudflare DNS

Prev Next

Cloudflare DNS provides both authoritative DNS and a public DNS resolver. As an authoritative DNS, it handles the translation of domain names to IP addresses for websites and applications, while offering enhanced security features. More information can be found here.

Integration Method: API

Tables: DNS Activity (4003)

This integration supports the following events.

Event

Description

DNS

Get the DNS related information for all the zones.

This integration supports the following versions.

Cloudflare DNS API version

v4.0

Note:

Cloudflare is a continuously updated cloud service. As for this document preparation, the latest release was on June 19, 2025. More information can be found here.

Prerequisites

  • The user should have access to the Cloudflare portal with an account that has the Administrator privileges. 

  • The user should have access to the DataBee console.

Configuration Overview

  1. Generate an API token with the required scopes.

  2. Add the Cloudflare DNS data feed in the DataBee console with the below parameters.

DataBee Parameter

Cloudflare DNS Parameter

Token

API Token

Cloudflare DNS Configuration

  1. Login to the Cloudflare portal, click on the drop down on the user icon at the top right corner and click on Profile.
     A screenshot of a computer  AI-generated content may be incorrect.

  2. On the “My Profile” page, Click on API Tokens.
     A screenshot of a computer  AI-generated content may be incorrect.

  3. On the “API Tokens” page, Click on Create Token.
     A screenshot of a computer  AI-generated content may be incorrect.

  4. On the “Create Token” page, scroll down and in the ‘custom token’ section, click Get started.
     A screenshot of a computer  AI-generated content may be incorrect.

  5. On the “Custom Token” page, do the following

    1. In the ‘Token name’ section, give a name for the token.

    2. In the ‘Permissions’ section, select Zones in the first dropdown, select Analytics in the second dropdown, select Read in the third dropdown.

    3. In the ‘Zone Resources’ section, select Include in the first dropdown, select All Zones in the second dropdown.

    4. In the ‘TTL’ section, you can optionally select the start and end date of the token.
       A screenshot of a computer  AI-generated content may be incorrect.

  6. Scroll down and click Continue to summary.
     A screenshot of a computer  AI-generated content may be incorrect.

  7. In the summary page, click Create Token.
     A screenshot of a computer  AI-generated content may be incorrect.

  8. Copy the token.
     A screenshot of a computer  AI-generated content may be incorrect.

    Note:

    The token will be displayed only once. Store it securely.

DataBee Configuration

  1. Login to the DataBee UI, navigate to Data > Data Feeds and click the Add New Data Feed button.
     

  2. Search for the Cloudflare DNS and click it as shown below.
     

  3. Click on the API Ingest option for collection method.
     

  4. Enter feed contact information and click Next.
     

  5. In the configuration page, confirm the following:

    • API Base URL: This is the base URL that DataBee will interact with

    • Authorization Method: Bearer Token

    • Token: Paste the Access Token generated earlier in the Cloudflare console.

    • Event Types: Preselected for all the event types that integration pulls.
       

  6. Click Submit.

Troubleshooting Tips

  • Ensure the token is pasted correctly. Since you cannot view the token after the 1st time, re-create the token, paste it on a text editor to ensure no spaces or unexpected characters are included and reconfigure the DataBee feed.

  • Ensure the Cloudflare DNS scopes/permissions are correct.