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

# Configure Cloudflare

If you registered your domain name through Cloudflare, or your domain points to Cloudflare's nameservers, you can delegate a subdomain to Release's nameservers.

Cloudflare does not currently support external nameservers for domains registered through Cloudflare Registrar, so this guide is limited to using a subdomain on Release only.

## Add your subdomain to Release

To add a subdomain to your Release account, follow the steps to [create a domain](/guides-and-examples/domains-and-dns/external-dns.md). Take note of the nameservers displayed by Release, as you'll use these in the next step.

## Configuring DNS in Cloudflare

To set up DNS delegation for a subdomain in Cloudflare, log in to your Cloudflare dashboard and select the domain you want to use.

Then follow these steps:

1. Click on **DNS** in the sidebar.
2. Click on **Add record**.
3. Select "NS" from the "Type" dropdown.
4. Enter the subdomain in the "Name" field.
5. Enter a nameserver hostname in the "Nameserver" field.
6. Click **Save**.
7. Repeat steps 2 through 6 for each nameserver.

![Configure Cloudflare DNS](https://585411240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1neGLLQ0sDXeK6ooSo%2Fuploads%2Fgit-blob-7ef0b033a9d78213f171b9ac1e8bc4929e487763%2Fexternal-dns-cloudflare-subdomain.png?alt=media\&token=a9d7eb01-4606-478b-8c05-051d3831e477)

After creating a DNS record for each nameserver, the Cloudflare DNS records should look like this:

![After adding subdomain NS records](https://585411240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1neGLLQ0sDXeK6ooSo%2Fuploads%2Fgit-blob-c73ebfb821c58efdca124ea0e254aa59c283c296%2Fexternal-dns-cloudflare-dns.png?alt=media)

You can find more information and detailed instructions for setting up subdomain delegation in Cloudflare over at Cloudflare's [Delegating Subdomains Outside of Cloudflare](https://support.cloudflare.com/hc/en-us/articles/360021357131) page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.release.com/guides-and-examples/domains-and-dns/external-dns/cloudflare.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
