Help Center/ Domain Name Service/ User Guide/ Private Zones/ Configuring Recursive Resolution for Subdomains
Updated on 2024-11-27 GMT+08:00

Configuring Recursive Resolution for Subdomains

Scenarios

You can enable the recursive resolution proxy option for private zones.

After this option is enabled, if no record sets are configured for the subdomain, the DNS service does not directly return nxdomain (which means that no record sets are configured). Instead, the DNS service forwards the request to the Internet and then returns the result.

Constraints

Private recursive DNS server does not return the resolution result based on DNS Resolver endpoint rules.

Recursive Resolution Example of a Subdomain in a Private Zone

For example.com, the following record sets have been added to the private zone:

Table 1 Record sets

Name

Type

Value

a1

A

1.2.3.4

When you access a1.example.com, the DNS server returns 1.2.3.4 based on the configured private zone record set.

When you access www.example.com, no record sets are configured in the private zone. In this case, the authoritative DNS server resolves the domain name and returns the result.

Enabling Recursive Resolution for Subdomains

You can enable recursive subdomain resolution when creating or modifying a private zone.

  • Enabling recursive subdomain resolution when creating a private zone

    When creating a private zone, you can select Recursive subdomain resolution proxy to enable recursive subdomain resolution.

    For details about how to create a private zone, see Creating a Private Zone.

    Figure 1 Enabling recursive subdomain resolution when creating a private zone
  • Enabling recursive subdomain resolution when modifying a private zone

    When modifying a private zone, you can select Recursive subdomain resolution proxy to enable recursive subdomain resolution.

    For details about how to modify a private zone, see Managing Private Zones.

    Figure 2 Enabling recursive subdomain resolution when modifying a private zone