[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/dns/zone-setups/subdomain-setup/setup/parent-on-full/ [Back]  [Original]

Set up a child zone in Cloudflare with parent on full setup Cloudflare DNS docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /DNS
  3. /
  4. /Setup
  5. /Parent zone on full setup

Parent zone on full setup

Last updated Apr 16, 2026Copy as MarkdownView as MarkdownAgent setup
OverviewSubdomain does not existSubdomain already exists

When the parent zone is using a primary setup (full)1, 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:

  1. 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.

  2. Complete the configuration accordingly for full or secondary setup.

  3. 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.

  4. On the DNS Records page of the parent zone, add two NS records 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:

  1. 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.

  2. Complete the configuration accordingly for full or secondary setup.

  3. 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 for api.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

  1. Meaning that Cloudflare is your Authoritative DNS provider.

PreviousOverviewNextParent zone on partial setup

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page