All Products
Search
Document Center

Alibaba Cloud DNS:Subdomain management rules

Last Updated:Sep 19, 2024

General rules

Type

Rule description

Subdomain deletion

If you delete a subdomain, the Domain Name System (DNS) records of the subdomain are deleted and cannot be restored.

Subdomain binding

You can bind a subdomain to a paid instance of Alibaba Cloud DNS and enable the DNS protection feature for the subdomain.

Version limits

If a primary domain and its subdomains are hosted by Alibaba Cloud DNS, they must both be bound to Alibaba Cloud DNS instances of the free edition or both be bound to Alibaba Cloud DNS instances of paid editions.

Domain transfer between accounts

The DNS records of a primary domain are transferred along with the primary domain to a new account and the DNS records of its subdomains are not transferred.

DNS record batch transfer between accounts

You can transfer the DNS records only of primary domains to another account. The DNS records of the subdomains are not transferred.

Limits on DNS service providers and accounts

A primary domain and its subdomains can be hosted by different DNS service providers and owned by different Alibaba Cloud accounts.

Domain ownership verification (TXT record verification)

In the Verify Registrant Identity dialog box, the value of the text (TXT) record is valid for one day if you do not click Verify to verify the TXT record. You can verify the TXT record for three times if you click Verify. If the TXT record fails to pass the verification, the value of the TXT record is reset.

Limits on the subdomain levels of primary domains and subdomains

Domains bound to free instances of Alibaba Cloud DNS support up to 10 levels of subdomains. For example, if you add a DNS record for the 1.aliyun.com subdomain, the longest hostname can be 10.9.8.7.6.5.4.3.2. Domains bound to paid instances of Alibaba Cloud DNS support up to 20 levels of subdomains.

Rules applied when you add a subdomain whose primary domain is also hosted by Alibaba Cloud DNS

After you add a subdomain to the domain list of the Alibaba Cloud DNS console, DNS records added for the primary domain are automatically synchronized to this subdomain if the DNS records belong to the subdomain. The following section describes how the DNS record of a newly added subdomain is automatically synchronized with the DNS records added for the primary domain.

Important

The DNS records added for the primary domain after you add a subdomain are not synchronized to the subdomain.

Example 1: scenario without wildcard DNS resolution

The DNS record described in the following table is added for the primary domain a.com whose subdomain c.b.a.com is independently hosted by Alibaba Cloud DNS.

Record type

Hostname

Resolution line

Record value

A

c.b

Default

1.1.XX.XX

The DNS record described in the following table is synchronized for the subdomain c.b.a.com.

Record type

Hostname

Resolution line

Record value

A

@

Default

1.1.XX.XX

Example 2: scenario 1 of wildcard DNS resolution

The DNS records described in the following table are added for the primary domain a.com whose subdomain c.b.a.com is independently hosted by Alibaba Cloud DNS.

Record type

Hostname

Resolution line

Record value

A

d.c.b

Default

1.1.XX.XX

A

*.c.b

Default

2.2.XX.XX

The DNS records described in the following table are synchronized for the subdomain c.b.a.com.

Record type

Hostname

Resolution line

Record value

A

d

Default

1.1.XX.XX

A

*

Default

2.2.XX.XX

Example 3: scenario 2 of wildcard DNS resolution

The DNS record described in the following table is added for the primary domain a.com whose subdomain c.b.a.com is independently hosted by Alibaba Cloud DNS.

Record type

Hostname

Resolution line

Record value

A

*.b

Default

1.1.XX.XX

The DNS records described in the following table are synchronized for the subdomain c.b.a.com.

Record type

Hostname

Resolution line

Record value

A

*

Default

1.1.XX.XX

A

@

Default

1.1.XX.XX

Example 4: scenario 3 of wildcard DNS resolution

The DNS records described in the following table are added for the primary domain a.com whose subdomain c.b.a.com is independently hosted by Alibaba Cloud DNS.

Record type

Hostname

Resolution line

Record value

A

*.b

Default

1.1.XX.XX

A

*

Default

2.2.XX.XX

The DNS records described in the following table are synchronized for the subdomain c.b.a.com.

Record type

Hostname

Resolution line

Record value

A

*

Default

1.1.XX.XX

A

@

Default

1.1.XX.XX

Important

Rules applied when you add a subdomain whose primary domain is not hosted by Alibaba Cloud DNS

If a primary domain is not hosted by Alibaba Cloud DNS and is not displayed in the domain list in the Alibaba Cloud DNS console, you need to add a DNS record for its subdomain when you add the subdomain. The rules applied in this scenario are the same as the rules applied in the scenario where a primary domain and its subdomains are both hosted by Alibaba Cloud DNS.