Manage internal zones

Last updated Jul 16, 2026 Refer to the following sections to learn how to manage your internal DNS zones.

Configuration conditions

When setting up internal zones, observe the following conditions:

  • Internal zones can contain the same DNS record types that Cloudflare supports for public zones.
  • An internal zone can have the same name as a public zone in the same account.
  • Each internal zone can be linked to multiple views.<sup>1</sup>
  • There can be several internal zones with the same name in one account. However, two internal zones with the same name cannot be linked to the same view.
  • Internal zones are not subject to any top-level domain (TLD) restrictions. This means that an internal zone can be created if its TLD is not registered publicly (for example, xyz.local), if it is created on the TLD itself ( local), or even if on the root ( .).

<sup>1</sup> Logical groupings of internal DNS zones that are referenced by Gateway resolver policies to define how a specific query should be resolved.

Create an internal zone

  1. In the Cloudflare dashboard, go to the Internal DNS page. Go to Internal DNS ↗
  2. Select Create an internal zone.
  3. Give your internal zone a name.
  4. Add DNS records to your internal zone using your preferred option:

  5. Import a formatted BIND file.

  6. Select Add a record and choose Create under the record type you want to add. Refer to DNS record types for details.

  7. Repeat this process for each internal zone you wish to add.

Note

Creating multiple internal DNS records in batch is currently only supported via API.

  1. Use the Create Zone endpoint to create an internal zone. Specify your account ID and set the type to internal.

<details>

<summary>

Example

</summary>

<details>

<summary>

Required API token permissions

</summary>

At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:

  • <code>Zone Zone Edit</code>
  • <code>Zone DNS Edit</code>

</details>

Create Zonebash

curl "https://api.cloudflare.com/client/v4/zones" \
    --request POST \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
    --json '{
        "account": {
                "id": "<ACCOUNT_ID>"
        },
        "name": "<ZONE_NAME>",
        "type": "internal"
    }'

</details>

  1. Add DNS records to your internal zone using your preferred option:

  2. Import a formatted BIND file. Refer to the DNS records how-to for guidance.

  3. Use other API endpoints, such as /batch, to manage DNS records. Refer to Batch record changes for details.

  4. Repeat this process for each internal zone you wish to add.

Other API actions

The API endpoints to manage internal zones are the same as for managing public zones. The main difference is that the zone type must be set to internal.

Note

When creating API tokens for Internal DNS, we recommend scoping them to specific internal zones rather than using "All zones". This follows the principle of least privilege. If you create new internal zones later, you will need to update the token scope to include them.

Refer to the following API documentation for details:

Was this helpful?

YesNo

On this page

Manage internal zones - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/internal-dns/internal-zones/setup/#page","headline":"Manage internal zones","description":"Understand how to set up and manage internal DNS zones with Cloudflare. Explore configuration conditions, zone creation, and available API endpoints.","url":"https://developers.cloudflare.com/dns/internal-dns/internal-zones/setup/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/internal-dns/internal-zones/setup/og.png?v=1c0e1d42c85cca59","dateModified":"2026-07-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["Private networks"]}


description: Protect and accelerate authoritative nameservers with DNS-level caching and DDoS mitigation. title: DNS Firewall image: https://developers.cloudflare.com/dns/dns-firewall/og.png?v=f61e864d24bebffe


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/dns/llms.txt
Use this file to discover all available pages before exploring further.