Intelligent resolution
Line-based resolution
Private Zone supports line-based resolution, which returns specific DNS records based on the source of a DNS query. Supported lines include default and custom lines.
Default line: This is a global line. You can configure a default line as a fallback to ensure that a DNS record is returned when no other smart line is hit.
Custom line: You can create a custom line in Private Zone to return a specific IP address for DNS queries that originate from a specific IP address segment.
Procedure
Click Authoritative Zone > User Defined Zones. Find the target domain and click Settings in the Actions column.
On the Settings page, click Add Record.
Fill in the record details. For Query Source, select a line.
Alibaba Cloud line
In the Add Record panel, set Query Source to Aliyun > Public Cloud > Target region (for example, China (Beijing)).
Custom line
In the Add Record panel, set Query Source to a custom ACL. If you do not have one, click + Custom ACLs, and follow the guide in 3. Custom ACLs to add one.
Weighted resolution
Weighted resolution in Private Zone lets you configure multiple IP addresses or domain names for the same hostname and query source. When a DNS query is received, the server returns a result based on the preset weight of each record. This process distributes traffic across different servers to achieve load balancing.
Limits
Category | Supported | Not supported |
Private Zone domain | Accelerated zone | Normal zone |
Record type | A record, AAAA record, and CNAME record. | Other record types. |
DNS record limit | 100 | - |
Weight rules | You can set the weight to an integer from 0 to 100. The default weight ratio is 1:1. If you set the weight of a record to 0, Private Zone does not return its record value. If you set the weights of all records to 0, all record values are returned. | - |
DNS query source | Default, Alibaba Cloud, and custom lines are supported. Note The weights for different DNS query source lines are independent of each other. | Weighted resolution across different DNS query sources. |
For the same hostname and DNS query source:
If multiple domain names are used as record values, only weighted resolution is supported.
If multiple IPv4 addresses are used as record values, configuring a weighted load balancing policy is optional.
If multiple IPv6 addresses are used as record values, configuring a weighted load balancing policy is optional.
Procedure
The following example uses an A record to show how to configure weights for multiple records.
Click Authoritative Zone > User Defined Zones, and find the target domain.
In the Actions column, click Settings.
On the Settings page, click Add Record.
In the Add Record dialog box, for Record Value Load Balancing Policy, select Ratio. Then, in the Record Values section, configure multiple record values and assign a weight to each.
If you select the round robin balancing policy for A or AAAA records, all record values are returned by default.