Cache accelerates DNS resolution within your private network by storing query results in memory.
Add Domain Name
Cache retention keeps a domain name's DNS record in memory. After the TTL expires, new queries receive the cached record while the system updates it asynchronously. If the update fails, the stale record continues to be served.
Use cache retention for frequently accessed or critical domain names to improve resolution speed and mitigate interruptions from authoritative DNS outages. During an outage, the system continues to serve the last known DNS record.
CNAME target domain names are not cached. Enable cache retention for each domain name in the CNAME chain separately.
-
Go to the Alibaba Cloud DNS - private zone console.
-
Click Cache > Add Domain Name.
-
Configure the parameters.
Parameter
Description
Domain Name
The exact domain name to cache. Subdomains are not included.
Record Type
The DNS record type to cache. Supported types:
A, AAAA, CNAME, TXT, MX, SRV, and PTR.
Cache Retention
-
DNS records persist in the cache, enabling resolution in under 1 ms.
-
After the cached data's TTL expires, new queries receive the stale data while the system updates asynchronously from the origin.
Effective Scope
Defines the VPCs where the cache retention rule applies.
In the Effective Scope section, select an Account (current or associated), VPC Type (Standard VPC or Wuying Workspace VPC), region, and VPC instance. Selected VPCs appear below the selector. To manage VPCs across accounts, click + VPC private DNS centralized management (across Alibaba Cloud accounts). VPC data synchronization takes up to 30 minutes.
-
-
When cache prefetching is enabled, the system periodically resolves subdomains to update the DNS cache, accelerating resolution within the effective scope.
-
Cache retention rules apply only within the specified effective scope.
-
This feature applies only to external public domain names resolved via recursion. Domain names resolved from a "Private Zone (standard zone)" or via forwarding are not supported.
-
Billing: 2. Cache management.
Domain Name
-
Go to the Alibaba Cloud DNS - private zone console.
-
Click Cache, find the domain name, and then click Edit in the Actions column.
Domain Name
-
Go to the Alibaba Cloud DNS - private zone console.
-
Click Cache, find the domain name, and then click Delete in the Actions column.
Clear Cache
Cache clearing flushes the cached DNS record for a domain name with cache retention enabled from servers within the effective scope. Use this when a workload requires the latest record immediately. This operation is billed on a pay-as-you-go basis.
-
Go to the Alibaba Cloud DNS - private zone console.
-
Click Cache, find the domain name, and then click Clear Cache in the Actions column.
-
In the dialog box that appears, confirm the operation.
NoteCache clearing applies only to the selected domain name, not subdomains. Rate limit: two operations per second.