Modify, delete, disable, import, and export DNS records

Updated at:

This topic describes how to modify, delete, disable or enable, import, export, group, and search for DNS records.

Modify DNS records

If changes to your public services require modifications to DNS records, modify them by using the following methods.

Method 1

Modify the record type, query source, record value, TTL, load balancing policy, and weight. The hostname cannot be modified by this method.

  1. On the Alibaba Cloud DNS page, click the Settings button for the target domain name.

  2. On the Settings tab, click Edit in the Actions column for the target DNS record.

  3. Modify the parameters as needed, and then submit the changes.

Method 2

Modify the hostname, record type, query source, record value, and TTL.

  1. On the Alibaba Cloud DNS page, click the Settings button for the target domain name.

  2. On the Settings tab, click the edit icon in the Hostname column for the target DNS record.

  3. Complete the modification in the dialog box that appears.

Delete DNS records

Warning

Deleting a DNS record immediately makes the corresponding service unavailable. Proceed with caution. We recommend exporting and backing up your DNS data before deleting any records.

  1. On the Alibaba Cloud DNS page, click the Settings button for the target domain name.

  2. On the Settings tab, click Delete for the target DNS record.

Disable and enable records

  • Disable a record: Disabling a DNS record in Alibaba Cloud DNS takes effect immediately. Once disabled, the record cannot be queried. However, due to caching, local DNS servers may continue to resolve the record for a period equal to its TTL.

  • Enable a record: Enabling a DNS record in Alibaba Cloud DNS takes effect immediately.

Note

Some ISPs may adjust the caching policies of their local DNS servers, which can cause a disabled DNS record to remain resolvable for a long time. Alibaba Cloud cannot control this behavior as it is determined by the ISP.

  1. On the Alibaba Cloud DNS page, click the Settings button for the target domain name.

  2. On the Settings page, find the target DNS record.

  3. Click the toggle switch in the Status column to enable or disable the record. When you disable a record, a confirmation dialog box appears. Click Disable to confirm the operation.

Import records

You can import prepared DNS data into the Alibaba Cloud DNS console in batches.

Fill in the template

Before you import records, download the standard template and prepare the DNS data according to the template rules:

  1. Get the template: On the Settings page, click Import/Export. On the Import Record tab, click Download Template.

  2. Prepare the data: If you export DNS data from another platform, you must process it according to the template rules. The template contains examples for common record types. These examples are for reference only. Delete them before you upload the file.

  3. Filling rules:

    • For how to specify DNS lines in the template, see DNS lines.

    • The template supports importing remarks for records. A remark can contain up to 50 characters. Characters beyond this limit are not imported.

    • The template supports importing the record status. You can set the status to Disabled or Enabled. If you leave it empty, the record is Enabled by default.

  4. File limits: The xls, xlsx, and zone formats are supported. The file size cannot exceed 2 MB. You can import a maximum of 1,000 records at a time. Records beyond this limit are not imported.

Import the file

  1. On the Settings page, click Import/Export.

  2. On the Import Record tab, select Import Mode:

    • Skip duplicate records and import only new data: Existing DNS records remain unchanged, and new records from the file are added.

    • Delete existing records and re-import: All existing DNS records are deleted, and the records in the file are added.

      This mode is a high-risk operation that can make your domain name unresolvable. Back up your DNS data in advance.

  3. Click Upload File. Select the DNS data file that you prepared according to the template rules.

  4. In the risk confirmation dialog box, confirm the impact of the selected import mode, and then click Upload File. To keep the current DNS data, click Back up DNS Data.

  5. The import runs as an asynchronous task. After you submit it, click Asynchronous Task in the upper-right corner to check whether the task is complete.

Export records

  1. On the Settings page, click Import/Export.

  2. Click the Export Record tab and select an export file format. The xlsx and zone formats are supported.

  3. Click Confirm.

  4. The export runs as an asynchronous task. After you submit it, click Asynchronous Task in the upper-right corner. When the task status changes to complete, click Download in the Actions column to obtain the exported file.

Export formats

You can export DNS records as .xlsx and .zone files. The two formats contain different scopes of data. Select a format based on your scenario:

Item

xlsx

zone

Format type

Alibaba Cloud DNS-specific spreadsheet format (Excel workbook).

Standard DNS zone file format (RFC 1035).

Record types

All record types supported in the console, including extended record types such as ALIAS and explicit/implicit URL records.

Standard record types only. Extended record types such as ALIAS are not supported.

Record fields

All console fields, including the DNS line, enabled/disabled status, and remarks.

Standard zone file fields only. Additional console fields such as the enabled/disabled status and remarks are not supported.

Scenarios

Full backup of console DNS records, record management, and migration back to Alibaba Cloud DNS across accounts or domains

Migration to other standard DNS service providers and integration with tools that are compatible with standard zone files

Group DNS records

If a domain has a large number of DNS records, you can organize them into groups for quick location and maintenance. For example, you can group records by function, such as A, CNAME, and MX records.

  1. On the Settings page, select the DNS records you want to group, and then click Change Group.

  2. In the dialog box, select the target group. You can also click the + icon at the bottom of the drop-down list, enter a name to create a new group, and then click OK.

  3. At the top of the page, you can filter DNS records by group (such as the Default Group) from the drop-down menu. In this menu, you can also edit or delete existing groups, or enter a name to create a new group. The default group is a system group and cannot be edited or deleted.

View configured subdomains

A subdomain is a domain created by adding a prefix to a root domain name. For example, in www.example.com and mail.example.com, www and mail are subdomain prefixes. You can view all DNS records configured for the subdomains of a domain on the Settings page.

  1. On the Alibaba Cloud DNS page, click the Settings button for the target domain name.

  2. On the Settings tab, find the list of DNS records. The value in the Hostname column is the subdomain prefix. A record is for a subdomain if its Hostname is not @.

  3. To find a specific subdomain, use the Hostname filter to quickly locate the target record.

Search for DNS records

If a domain has many DNS records, you can quickly find them by using the Hostname, Record Type, Query Source, Record Value, or Status filter.

FAQ

Why do deleted or disabled DNS records automatically restore or reappear?

Deleted or disabled DNS records usually reappear for the following reasons:

  • Automation tools: Check whether third-party tools, automation scripts (such as ACME clients like certbot and acme.sh), or scheduled tasks are automatically re-adding the records.

  • Cloud service bindings: The domain may be bound to other Alibaba Cloud services (such as Alibaba Mail, CDN, or automatic SSL certificate renewal), which triggers automatic configuration synchronization.

  • Misunderstood SSL certificate notifications: If you receive a "TXT record deletion notification" but do not see the record in the console, this is typically because an SSL certificate auto-renewal tool quickly deletes the record after successful validation. This is normal behavior.

Troubleshooting: Use the Operation Logs in Alibaba Cloud DNS to check who or which API re-added the record and locate the source of the automatic restoration.

Note

If a record was disabled a long time ago, the specific reason may no longer be traceable.

Does modifying the DNS records of a single domain affect other domains?

No. Modifying the DNS records of a single domain takes effect only for that domain. It does not affect the DNS records of other domains under the same account or other accounts. DNS records of each domain are independent.

Migrate DNS records across domains

If you have registered a new domain B and want to migrate all DNS records from your old domain A to domain B, complete the migration in three steps: export, edit, and import.

  1. On the Settings page of domain A, click Import/Export > Export Records to export the DNS record file.

  2. Edit the exported file. Replace the domain A portion in the record values with domain B. The hostname does not need to be modified.

  3. On the Settings page of domain B, click Import/Export > Import Records, and upload the edited file.