# Cloudflare DNS (ddclient)

## Cloudflare API Requirements

{% hint style="info" %}
Cloudflare now requires ddclient version 3.9.1 or higher due to a change to APIv4. \
Debian/Ubuntu packages are currently behind at 3.8.x (As of 2020.08.06)&#x20;
{% endhint %}

**See :** [Installing Latest ddclient](/knowledge/linux/applications/ddclient/installing-latest-ddclient.md).

## ddclient.conf

```bash
The 'cloudflare' protocol is used by DNS service offered by www.cloudflare.com.

Configuration variables applicable to the 'cloudflare' protocol are:
  protocol=cloudflare          ##
  server=fqdn.of.service       ## defaults to www.cloudflare.com
  login=service-login          ## login name and password  registered with the service
  password=service-password    ##
  fully.qualified.host         ## the host registered with the service.

Example ddclient.conf file entries:
  ## single host update
  protocol=cloudflare,                                         \
  zone=dns.zone,                                               \
  login=my-cloudflare.com-login,                               \
  password=my-cloudflare.com-secure-token                      \
  myhost.com

  ## multiple host update to the custom DNS service
  protocol=cloudflare,                                         \
  zone=dns.zone,                                               \
  login=my-cloudflare.com-login,                               \
  password=my-cloudflare.com-secure-token                      \
  my-toplevel-domain.com,my-other-domain.com
  
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://strangebutohwell.gitbook.io/knowledge/linux/applications/ddclient/cloudflare-dns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
