All Products
Search
Document Center

Alibaba Cloud DNS:Add DNS records

Last Updated:Nov 06, 2025

Add DNS records in Form Editor mode or Visual Editor mode.

After you add an internal authoritative domain name, you must set its corresponding internal authoritative DNS records. Only then can you set an effective scope for the internal authoritative domain name. Within the effective scope, the domain name's internal DNS records will overwrite its public DNS records.

Form Editor mode

  1. Visit Alibaba Cloud DNS - Private Zone.

  2. On the Authoritative Zone tab, click User Defined Zones.

  3. On the User Defined Zones tab, find the target domain name and click Settings in the Actions column.

  4. On the DNS Records tab, click Add Record. In the dialog box, select Form Editor Mode.

  5. In the Add Record dialog box, configure the parameters for the DNS record and click OK.

  6. In the Confirm DNS Record Change dialog box, verify the settings and click OK to add the DNS record.

  7. Return to the Custom Domain Names tab, click Effective Scope Settings in the Actions column for the target domain name, and select a VPC as the effective scope.image

    Note

    The steps for configuring DNS records are the same for internal authoritative standard zones and acceleration zones, but acceleration zones support custom internal network resolution lines and weight settings for A, AAAA, and CNAME records.

    For more information about the supported record types and their usage, see Record types supported by Private Zone.

Examples of adding DNS records

A record

Use the settings in the following figure to add an A record for an authoritative domain name.

image

AAAA record

Use the settings in the following figure to add an AAAA record for an authoritative domain name.

image

CNAME record

Use the settings in the following figure to add a CNAME record for an authoritative domain name.

image

MX record

Use the settings in the following figure to add an MX record for an authoritative domain name.

image

TXT record

Use the settings in the following figure to add a TXT record for an authoritative domain name.

image

PTR record

Before you add a PTR record, you must configure a reverse lookup zone. For more information, see Reverse lookup and PTR records.

SRV record

An SRV record identifies the server that provides a specific service. This record type is common in directory management for Microsoft systems.

  • Record Type: Select SRV.

  • Host: The format is service_name.protocol_type.

    For example: _sip._tcp

  • Value: The format is Priority Weight Port Target. Separate each item with a space.

    For example: 0 5 5060 sipserver.example.com

  • TTL: The cache period. A smaller value means that changes to the record take effect more quickly.

    image

Visual Editor mode

The Visual Editor mode supports complex traffic orchestration that involves multiple resolution lines and merged record types. This clarifies the traffic routing for domain name resolution. The rules are as follows:

  • In Visual Editor mode, the host and TTL are set once for the entire group of DNS records. All records in the group share the same host and TTL.

  • You can set multiple query source lines. By default, one query source line is created for each new record. To add more lines, click the + Query Source button.

  • To add multiple record types, such as A, AAAA, and CNAME, for the same query source line, click the + Record Type button.

  • To add multiple record values for the same query source and record type, click the + button next to the record value field.

Procedure

  1. Visit Alibaba Cloud DNS - Private Zone.

  2. Click Authoritative Zone. On this tab, click User Defined Zones.

  3. On the User Defined Zones tab, find the target domain name and click Settings in the Actions column.

  4. On the DNS Records tab, click Add Record. In the dialog box that appears, select Visual Editor Mode.

  5. In the Add Record dialog box, configure the parameters for the DNS record and click OK.

  6. In the Confirm DNS Record Change dialog box, review the settings and click OK to add the DNS record.

  7. On the User Defined Zones tab, find the target domain name, click Set Effective Scope in the Actions column, and then select a VPC as the effective scope.

Add DNS records for a standard zone

Note

DNS records for standard zones do not support custom lines or weight settings.

image.png

Note
  • If multiple A or AAAA records exist, all their IP addresses are returned when a DNS query is a hit.

  • If multiple CNAME records are hit, only one CNAME record is returned at a time.

Add DNS records for an acceleration zone

The steps to add DNS records for an acceleration zone are the same as for a standard zone. However, when you configure the parameters, A and AAAA records support both polling and weight modes. If you select weight mode, you can adjust the weight ratio by setting the weight parameter next to the record value.

Note
  • CNAME records support only weight mode. You can adjust the weight value.

  • In polling mode, all addresses are returned.

image.png

For more information about the supported record types and their usage, see Record types supported by Private Zone.