Custom ACLs allow you to configure Alibaba Cloud DNS to return specific IP addresses for DNS queries from a specified IP address range.
Prerequisites
The public authoritative zone service must be upgraded to the Ultimate Edition or later.
Step 1: Create a custom line
Go to the Alibaba Cloud DNS - Public Authoritative Zone page and click Settings for the target domain name.
Switch to the Custom ACLs tab.

Click Add Custom ACLs, and enter a ACL Name and an IP Address Range.
NoteCustom lines support only IPv4 addresses and do not support IPv6 addresses.
ImportantBy default, the Public Zone service performs intelligent DNS scheduling based on the egress IP address of the client's local DNS server.
If the client's local DNS server supports EDNS-Client-Subnet (ECS), the Public Zone service can perform intelligent DNS scheduling based on the client's CIDR block.
Step 2: Configure DNS records for the custom line
Go to the Alibaba Cloud DNS - Public Authoritative Zone page and click Settings for the target domain name.
When adding a DNS record, set Query Source to Custom Line. Then, select the custom line that you created.
