All Products
Search
Document Center

Alibaba Cloud DNS:Custom lines

Last Updated:Jan 20, 2026

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

  1. Go to the Alibaba Cloud DNS - Public Authoritative Zone page and click Settings for the target domain name.

  2. Switch to the Custom ACLs tab.

    image

  3. Click Add Custom ACLs, and enter a ACL Name and an IP Address Range.

    image

    Note

    Custom lines support only IPv4 addresses and do not support IPv6 addresses.

    Important
    • By 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

  1. Go to the Alibaba Cloud DNS - Public Authoritative Zone page and click Settings for the target domain name.

  2. When adding a DNS record, set Query Source to Custom Line. Then, select the custom line that you created.

    image