Delegate subdomains

Last updated Aug 14, 2026 Subdomain delegation allows different individuals, teams, or organizations to manage different subdomains of a site.

Note

DNS delegation is not possible for Cloudflare domains using a CNAME setup (partial).

For instance, consider example.com as a Cloudflare domain with www.example.com managed in Cloudflare's DNS app and blog.example.com delegated to nameservers outside of Cloudflare. In this example, blog.example.com can now be managed by individuals who do not have access to Cloudflare credentials for the example.com domain.

Caution

Cloudflare's CDN and security services are not applied to delegated subdomains.

Availability

Free Pro Business Enterprise
Availability Yes Yes Yes Yes

Delegate a subdomain (outgoing)

To delegate a subdomain such as blog.example.com, tell DNS resolvers where to find the zone file:

  1. Log in to the Cloudflare dashboard ↗︎ and select your account.
  2. Select the domain that contains the subdomain to be delegated.
  3. Go to the DNS Records page. Go to Records ↗
  4. Create NS records for the subdomain. For example:
  5. blog.example.com NS ns1.externalhost.com
  6. blog.example.com NS ns2.externalhost.com
  7. blog.example.com NS ns3.externalhost.com

Note

The A records for the subdomain are only required as glue records for nameservers that are located in the subdomain of the current zone that is being delegated. 5. (Optional) If the delegated nameserver has DNSSEC enabled, add the DS record in Cloudflare.

Limits

When creating NS records, there are limits on the number of nameservers that can be associated with a single delegation name.

According to DNS standards defined in RFC 1912 ↗︎, a delegation should not include more than seven nameserver names for the same delegation name.

To align with these standards and maintain platform stability:

  • Cloudflare supports up to 10 NS records per delegation name, but the best practice is to keep the set at seven or fewer.
  • Creating more than 10 NS records for the same name is not supported. Requests that exceed this limit may be rejected or fail validation.

<details>

<summary>

Example

</summary>

DNS management for example.com:

Type Name Content
NS blog <code>ns1.externalhost.com</code>
NS blog <code>ns2.externalhost.com</code>
NS blog <code>ns3.externalhost.com</code>
NS blog <code>ns4.externalhost.com</code>
NS blog <code>ns5.externalhost.com</code>
NS blog <code>ns6.externalhost.com</code>
NS blog <code>ns7.externalhost.com</code>
NS blog <code>ns8.externalhost.com</code>
NS blog <code>ns9.externalhost.com</code>
NS blog <code>ns10.externalhost.com</code>

In this example, Cloudflare would prevent you from adding another NS record for the delegation name <code>blog</code>.

</details>

Delegate a subdomain (incoming)

To delegate a subdomain from an external DNS provider to Cloudflare, refer to subdomain setups.

Was this helpful?

YesNo

On this page

Delegate subdomains - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/manage-dns-records/how-to/subdomains-outside-cloudflare/#page","headline":"Delegate subdomains","description":"Delegate subdomains to external DNS providers.","url":"https://developers.cloudflare.com/dns/manage-dns-records/how-to/subdomains-outside-cloudflare/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/manage-dns-records/how-to/subdomains-outside-cloudflare/og.png?v=0d9e18f509103ba3","dateModified":"2026-08-14","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/"}}


description: DNS record types supported by Cloudflare. title: DNS record types image: https://developers.cloudflare.com/dns/manage-dns-records/reference/dns-record-types/og.png?v=a410073f748f42e8


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.