Intelligent Resolution

Updated at:

1. Line-based smart DNS

Private DNS supports line-based smart DNS, 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 DNS to return a specific IP address for DNS queries that originate from a specific IP address segment.

Procedure

  1. Go to Alibaba Cloud DNS - PrivateZone.

  2. Click Authoritative Zone > User Defined Zones. Find the domain name that you want to manage and click the Settings button in the Actions column.

  3. On the Settings page, click the Add Record button.

  4. Complete the form. For Query Source, specify a smart line.

    Alibaba Cloud line

    image

    Custom line

    image

Weighted Intelligent Parsing

Weight-based resolution in Private DNS lets you configure multiple IP addresses or domain names for the same host record 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

Built-in authoritative domain name

Acceleration zone

Standard zone

Record type

A record, AAAA record, CNAME record.

Other record types.

Resolution record quantity limit

100

N/A.

Weight value rules

Weight values can be set from 0-100, with the default weight ratio being 1:1. Weight values can be set to "0", in which case the built-in authoritative DNS will not return this resolution record value. If all are set to "0", all resolution record values will be returned.

N/A.

DNS Request Source

Supports default, Alibaba Cloud, and custom resolution lines.

Note

Weights for different DNS request source lines are independent of each other.

Resolution records from different DNS request sources.

Note

For the same host record and DNS request source:

  • When record values are multiple domain names, only weight mode can be set.

  • When record values are multiple IPv4 addresses, you can choose whether to set weight load balancing policy based on your needs.

  • When record values are multiple IPv6 addresses, you can choose whether to set weight load balancing policy based on your needs.

Procedure

The following example demonstrates how to set weights for multiple A records.

  1. Access Cloud DNS-Internal Domain Name Resolution.

  2. Click Built-in Authoritative, and then click User Domains on this tab.

  3. On the User Domains tab, click the Resolution Settings button in the Operation column of the target domain.

  4. On the Resolution Records page, click Add Record. In the dialog box, select Form Filling Mode or Graphical Orchestration Mode. This topic uses Form Filling Mode as an example.

  5. In the Add Record dialog box, select Weight for Record Value Load Balancing Policy, and complete the parameter configuration for record type, host record, DNS request source, and TTL. Based on your actual needs, configure multiple record values in Record Collection and set weight parameters for the record values. Finally, click OK to complete the configuration.image

Note

When polling load balancing policy is selected, the system returns all resolution records by default. When there are multiple CNAME records, only one record is returned each time.