You can add a subdomain to the Public Zone to configure and manage the subdomain and its DNS records independently. This method provides flexible and efficient control, making it ideal for scenarios that require subdomain autonomy, permission delegation, or cross-team decoupling.
Subdomain delegation
Typically, an entire root domain, such as example.com, uses a single set of NS servers for resolution. However, DNS standards allow you to specify separate NS records for a subdomain. This practice is known as "subdomain delegation". For example, abc.example.com can be resolved by a different set of NS servers. This makes the subdomain's control and DNS resolution rules completely independent of the root domain. For more information about root domains and subdomains, see Domain hierarchy.
Scenarios
Distributed service isolation and O&M autonomy
For organizations with Software as a Service (SaaS) offerings, multiple lines of business, or distinct enterprise groups, each business often has its own Operations and Maintenance (O&M) team. These teams can independently control the DNS for a subdomain, such as
product.example.com, without affecting the root domain or other subdomains.You can manage DNS resources for a staging environment, such as
test-env.example.com, independently. This prevents accidental changes from affecting the production root domain.
Decoupling across clouds, IDCs, or multi-platform CDNs
Government, enterprise, or finance customers often use self-managed DNS. However, the associated use and maintenance costs are high. These customers can delegate a subdomain to Alibaba Cloud DNS for independent management.
If a root domain's DNS servers are hosted by a third-party provider and a full migration to Alibaba Cloud DNS is not feasible, you can migrate a subdomain to Alibaba Cloud DNS as an initial step.
Features
Type | Description |
Instance edition limits | If the root domain is with a third-party provider and the subdomain is on Alibaba Cloud, the subdomain can be independently bound to a paid edition of Alibaba Cloud DNS. If the subdomain requires security protection, you must enable it separately. |
If both the root domain and subdomain use Alibaba Cloud DNS, their DNS editions must be the same. This refers only to whether they are the Paid Edition or Free Edition. The specific type of Paid Edition does not matter. | |
Domain name transfer between accounts | Only the DNS records of the root domain are transferred to the new account. The subdomain is not affected. |
DNS provider/account limits | The root domain and subdomain can exist with different DNS providers, under different Alibaba Cloud accounts, or under the same Alibaba Cloud account. |
Subdomain level limits for root/subdomains | Free Edition: Supports up to 5 levels. For example, if the subdomain is Paid Edition: Supports up to 10 levels. |
Add a subdomain
Root domain with a third-party DNS provider and subdomain with Alibaba Cloud DNS
Go to the Alibaba Cloud DNS - Public Authoritative Zone page and click the Add Zone button.
In the Add Zone dialog box, enter the subdomain, such as
demo.example.com, and click the Verify TXT Record button.
In the Registrant Identity Verification dialog box, copy the host record and record value.

Go to your third-party DNS provider. On the DNS settings page for the root domain, add a TXT record using the copied host record and record value.
Return to the Registrant Identity Verification dialog box and click the Verify button. This action verifies the TXT record.
ImportantTo verify the domain registrant's identity, copy the Hostname and Record Value. You can then close the dialog box if you have not clicked the Verify button. The TXT record value for verification is valid for one day. If you click Verify, you have a maximum of three verification attempts. If verification fails three times, the TXT record value is reset. After you add the TXT record for the primary domain name, click the Verify button to complete the TXT verification.
The subdomain is added to the domain name list. In the subdomain's entry, find the DNS Server IP Address to obtain the DNS addresses assigned by the system.

(Optional) If the subdomain has no active DNS records, you can skip this step. If the subdomain you are adding has active DNS records, you must first add all of its existing DNS records in Alibaba Cloud DNS.
Go to your third-party DNS provider. On the DNS settings page for the root domain, add NS records for the subdomain. Point these records to the DNS server addresses that Alibaba Cloud DNS assigned to the subdomain. For example, if your subdomain is
test.example.com:Host Record
Record Type
Record Value
testNS
ns1.alidns.com
testNS
ns2.alidns.com
Both root domain and subdomain use Alibaba Cloud DNS
The root domain and subdomain can belong to different Alibaba Cloud accounts or the same Alibaba Cloud account.
Go to the Alibaba Cloud DNS - Public Authoritative Zone page and click the Add Zone button.
In the Add Zone dialog box, enter the subdomain and click the Verify TXT Record button.
In the Registrant Verification dialog box, copy the Hostname and Record Value.
ImportantTo verify the domain registrant's identity, copy the Hostname and Record Value. You can then close the dialog box if you have not clicked the Verify button. The TXT record value for verification is valid for one day. If you click Verify, you have a maximum of three verification attempts. If verification fails three times, the TXT record value is reset. After you add the TXT record for the primary domain name, click the Verify button to complete the TXT verification.
Log on to the Alibaba Cloud account that owns the primary domain name, go to the DNS Settings page of Cloud DNS, and add a TXT record using the Hostname and Record Value provided for registrant identity verification.
After the TXT record takes effect, return to the Registrant Verification dialog box and click the Verify button.
After the TXT verification is successful, the subdomain is added to the domain name list. Click the subdomain to go to its DNS Settings page. Alibaba Cloud DNS automatically syncs the DNS records for this subdomain from the root domain to the new subdomain entry. For more information about the synchronization rules, see Synchronization rules for DNS records when both root domain and subdomain use Alibaba Cloud DNS.
The subdomain is added to the domain name list. In the subdomain's entry, find the DNS Server IP Address to obtain the DNS addresses assigned by the system.

If the root domain contains DNS records for the subdomain, those records will be affected when you host the subdomain separately. You must delete the subdomain's DNS records from the root domain and re-configure them on the subdomain's DNS Settings page. If the root domain has no such records, you can ignore this step.
ImportantThe root domain and subdomain must use the same edition of Alibaba Cloud DNS. For example, if the root domain uses a Paid Edition, the subdomain must also be bound to a Paid Edition. If the root domain uses a Paid Edition, first add the subdomain, then bind it to a Paid Edition, and finally add the NS records to the root domain.
Recover a subdomain
If a subdomain has already been added for independent management by another Alibaba Cloud account, you can use the Recover Subdomain feature to reclaim management rights and the associated DNS records for your current account.
Go to the Alibaba Cloud DNS - Public Authoritative Zone page and click the Add Zone button.
In the Add Zone dialog box, enter the subdomain and click the Retrieve Zone button.
In the Registrant Verification dialog box, copy the Hostname and Record Value.
ImportantTo verify the domain registrant's identity, copy the Hostname and Record Value. You can then close the dialog box if you have not clicked the Verify button. The TXT record value for verification is valid for one day. If you click Verify, you have a maximum of three verification attempts. If verification fails three times, the TXT record value is reset. After you add the TXT record for the primary domain name, click the Verify button to complete the TXT verification.
After the registrant identity verification is successful, the subdomain and its DNS records are automatically transferred to the account that initiated the recovery.
Delete a subdomain
If you no longer want to manage a subdomain independently, you can delete it. All DNS records under the subdomain will be deleted and cannot be recovered.
Before you unregister, delete, or transfer out a domain name, especially one that is registered with Alibaba Cloud and hosted with Alibaba Cloud DNS, you must first change its DNS servers (NS records) to non-Alibaba Cloud DNS servers. Otherwise, after the domain name is deleted or released, it can be re-registered by another user, added to Alibaba Cloud DNS, and quickly put into use. This creates a threat of abuse, impersonation, or phishing.
On the Alibaba Cloud DNS - Public Authoritative Zone page, click Delete in the Actions column.

Appendix
Synchronization rules for DNS records when both root domain and subdomain use Alibaba Cloud DNS
After you add a subdomain, if the root domain already has DNS records for that subdomain, those records are automatically synced to the new subdomain entry. However, any DNS records for the subdomain that you add to the root domain after adding the subdomain entry will not be synced. The following examples illustrate the detailed rules:
Example 1: Scenario without wildcard DNS
Root domain: a.com. Subdomain for independent DNS hosting: c.b.a.com. If the root domain has the following DNS record:
Record Type | Host Record | Line parsing | Record Value |
A | c.b | Default | 1.1.XX.XX |
The DNS record for the subdomain c.b.a.com is synced as follows:
Record Type | Host Record | Line parsing | Record Value |
A | @ | Default | 1.1.XX.XX |
Example 2: Wildcard DNS scenario 1
Root domain: a.com. Subdomain for independent DNS hosting: c.b.a.com. If the root domain has the following DNS records:
Record Type | Host Record | Line parsing | Record Value |
A | d.c.b | Default | 1.1.XX.XX |
A | *.c.b | Default | 2.2.XX.XX |
The DNS records for the subdomain c.b.a.com are synced as follows:
Record Type | Host Record | Line parsing | Record Value |
A | d | Default | 1.1.XX.XX |
A | * | Default | 2.2.XX.XX |
Example 3: Wildcard DNS scenario 2
Root domain: a.com. Subdomain for independent DNS hosting: c.b.a.com. If the root domain has the following DNS record:
Record Type | Host Record | Line parsing | Record Value |
A | *.b | Default | 1.1.XX.XX |
The DNS records for the subdomain c.b.a.com are synced as follows:
Record Type | Host Record | Line parsing | Record Value |
A | * | Default | 1.1.XX.XX |
A | @ | Default | 1.1.XX.XX |
Example 4: Wildcard DNS scenario 3
Root domain: a.com. Subdomain for independent DNS hosting: c.b.a.com. If the root domain has the following DNS records:
Record Type | Host Record | Parsing a line | Record Value |
A | *.b | Default | 1.1.XX.XX |
A | * | Default | 2.2.XX.XX |
The DNS records for the subdomain c.b.a.com are synced as follows:
Record Type | Host Record | Line parsing | Record Value |
A | * | Default | 1.1.XX.XX |
A | @ | Default | 1.1.XX.XX |
In this case, the @ record follows the longest match principle. The DNS record that is synced to the subdomain is the one with the host record *.b from the root domain because it is the most specific match.