Parent zone on full setup
Last updated Apr 16, 2026 When the parent zone is using a primary setup (full)<sup>1</sup>, the steps to set up your child zone depend on whether the subdomain already exists in the parent domain.
Note
The following steps are similar if your Cloudflare parent zone is in a secondary setup, with the only difference that you will use your external primary DNS provider to make any necessary adjustments to DNS records.
Subdomain does not exist
If you have not yet created DNS records covering your subdomain in the parent zone:
- Add the subdomain to a Cloudflare account as a new zone. It can be the same account where the parent zone exists or a different one.
- Complete the configuration accordingly for full or secondary setup.
- Get the nameserver names for the subdomain. These can be found within your newly created child zone on the DNS Records ↗︎ page, and will not be the same nameservers as the ones used in the parent zone.
- On the DNS Records ↗︎ page of the parent zone, add two
NSrecords for the subdomain you want to delegate.
For example, if you delegated www.example.com, you might add the following records to example.com:
| Type | Name | Content |
|---|---|---|
NS |
www | john.ns.cloudflare.com |
NS |
www | melinda.ns.cloudflare.com |
| 5. After a few minutes, the child zone will be active. | ||
| 6. Create the various DNS records needed for your child zone. | ||
| 7. (Optional) Enable DNSSEC on the child zone. |
Subdomain already exists
If you have already created DNS records covering your subdomain in the parent zone:
- Add the subdomain to a Cloudflare account as a new zone. It can be the same account where the parent zone exists or a different one.
- Complete the configuration accordingly for full or secondary setup.
- In your child zone, make sure you have all DNS records that relate to the subdomain. This includes all DNS records deeper than the delegated subdomain. For example, if you are delegating
www.example.com, you should also move over records forapi.www.example.com.
Note
If your child zone is on a primary setup (full), consider exporting records from the parent zone, deleting all unnecessary records, and then importing the records into your new zone. 4. If the parent zone is on Cloudflare, make sure that you migrate over any settings (WAF custom rules, Rules, Workers, and more) that might be needed for the child zone. 5. In the child zone, order an advanced SSL certificate that covers the child subdomain and any deeper subdomains (if present). 6. Get the nameserver names for the subdomain. These can be found within your newly created child zone on the DNS Records ↗︎ page, and will not be the same nameservers as the ones used in the parent zone.
Note
If the parent zone is on Cloudflare, steps 7 and 9 below can be achieved via API. Use the Batch DNS records endpoint to delete and create or update DNS records within a single request. Refer to Batch record changes for further guidance.
7. On the DNS Records ↗︎ page of the parent zone, update existing address records ( A/AAAA) on your subdomain to NS records. If you only have one address record, update the existing one and add a new NS record. If you have multiple address records, update any two of them.
For example, to delegate the subdomain www.example.com, the updated records in the parent zone example.com should contain NS records similar to the following:
| Type | Name | Content |
|---|---|---|
NS |
www | john.ns.cloudflare.com |
NS |
www | adam.ns.cloudflare.com |
In this example, john.ns.cloudflare.com and adam.ns.cloudflare.com represent the subdomain nameservers that you got from step 6.
8. Flush the address records of your subdomain in public resolvers (1.1.1.1 ↗︎ and 8.8.8.8 ↗︎).
9. On the DNS Records ↗︎ page of the parent zone, delete all the remaining records on the delegated subdomain, except the NS records that you created in step 7.
Also delete all DNS records deeper than the delegated subdomain. For example, if you are delegating www.example.com, records for api.www.example.com should only exist in the new child zone.
10. Within a short period of time, the child zone should be active.
11. (Optional) Enable DNSSEC on the child zone.
Footnotes
- Meaning that Cloudflare is your Authoritative DNS provider. ↩
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/zone-setups/subdomain-setup/setup/parent-on-full/#page","headline":"Parent zone on full setup","description":"Set up subdomain zone when parent uses full setup.","url":"https://developers.cloudflare.com/dns/zone-setups/subdomain-setup/setup/parent-on-full/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/zone-setups/subdomain-setup/setup/parent-on-full/og.png?v=41c25d0a8c7390b1","dateModified":"2026-04-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/"}}
description: Set up subdomain zone when parent uses partial setup. title: Parent zone on partial setup image: https://developers.cloudflare.com/dns/zone-setups/subdomain-setup/setup/parent-on-partial/og.png?v=343d89f458ea8622
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.
Docs