> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/c/cloudflare-dns.md).

# Cloudflare DNS

Cloudflare DNS hosts the DNS zones of your domains. OctoXLabs uses the Cloudflare API to add zones and their DNS records to the domain inventory.

## Use cases

* List the DNS zones and records that Cloudflare DNS holds.

```
Adapters = cloudflare-dns
```

* Review every record of one type with the Domains query wizard.

```
Adapters = cloudflare-dns
```

## Before you begin

### Network

| Source              | Destination                                 | Port | Protocol |
| ------------------- | ------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Cloudflare API (default api.cloudflare.com) | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission | Needed for  |
| ------------- | ---------- | ----------- |
| Zone          | Read       | Zones       |
| DNS           | Read       | DNS records |

## Create credentials in Cloudflare DNS

{% stepper %}
{% step %}

### Open API tokens

Open the Cloudflare dashboard and go to **My Profile > API Tokens**.
{% endstep %}

{% step %}

### Create the token

Create a token with the **Zone: Read** and **DNS: Read** permissions.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type     | Default | Description                                                                                                                                                                                                 |
| --------- | -------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| API URL   | Yes      | Text     |         | Cloudflare API URL, normally `https://api.cloudflare.com`. Use another URL only if your organization has a custom API endpoint. Enter the scheme, because the adapter appends paths directly to this value. |
| API Token | Yes      | Password |         | Cloudflare API token.                                                                                                                                                                                       |

## Troubleshooting

No adapter-specific error messages are documented for this adapter.

## Change history

{% hint style="info" %}
Available starting from version 6.2.0.
{% endhint %}
