All Products
Search
Document Center

Alibaba Cloud DNS:CDN & GTM linkage to achieve access acceleration and high service availability

Last Updated:Dec 04, 2025

Scenarios

Website, game, video, and live streaming customers implement CDN acceleration to enable nearby access to origin content. These customers also have high requirements for business availability. Because CDN itself cannot detect the operational status of origin IP addresses, it cannot quickly switch user traffic to normal addresses during failures. Global Traffic Manager (GTM) can help enterprises implement traffic load balancing, fault detection, and automatic switchover.

Solutions

Both CDN and GTM provide services to users through CNAME domains. If users point the same subdomain to different CNAME domains simultaneously, one of the products will not function properly because authoritative DNS responds in a polling manner. However, many businesses need both domain acceleration and origin high availability. For scenarios requiring both CDN acceleration and GTM origin IP disaster recovery switching, we recommend users implement this through a serial configuration method.

1

Configuration methods

Steps overview

  1. Global Traffic Manager configuration.

  2. CDN acceleration configuration.

Resource preparation

  1. Prepare a test domain: test.alidns.com.

  2. Create a GTM instance.

  3. Activate Alibaba Cloud CDN acceleration service.

Step 1: Global Traffic Manager configuration

Configure IPAM pool and enable health check

  1. Access Cloud DNS - Global Traffic Manager. In the Global Traffic Manager instance list, find the destination instance and click the Operation area's Configure button.

  2. On the Basic Configuration page, click Address Pool Configuration, then click Add Address Pool. Create 2 address pools as follows:

    Address Pool Name

    IP Address in Address Pool

    Pattern

    test1

    1.1.XX.XX

    Smart Return

    test2

    2.2.XX.XX

    Smart Return

    image.png

  3. On the Address Pool Configuration page, click the "+" icon in front of the address pool to expand the address pool configuration, then click Health Check followed by Add. Complete the health check configuration.image.png

Configure access policy

  1. On the Basic Configuration page, select Geography-based Access Policy for Access Policy Type, and click the Configure button in this module.

  2. Click Add Access Policy to add a new access policy with the following configuration:

    Policy Name

    Primary Address Pool Collection

    Backup Address Pool Collection

    DNS Request Source

    Global

    test1

    test2

    Global

    image.png

Basic configuration

  1. On the Basic Configuration page, click the Modify button below. In the dialog box that appears, complete the configuration for Instance Name, CNAME Access Domain, Business Domain, Global TTL, Alert Notification Group, and Alert Notification Method.image.png

Step 2: Configure CDN acceleration

  1. On the Basic Configuration tab of Global Traffic Manager, copy the CNAME Access Domain of GTM.

  2. Log on to the CDN console, click Domain Names in the left-side navigation pane. On the Domain Names page, click the Add Domain Name button. Complete the configuration for Acceleration Region, Acceleration Domain, Business Type, and Origin Information according to your requirements.

    Note

    Paste the copied GTM CNAME access domain into the Origin Domain Name field.

  3. After adding the acceleration domain, the status will initially show as "Reviewing" or "Configuring". You need to wait for a few minutes until the status changes to Running. Then go to the Cloud DNS console to configure the CNAME record. Point the business domain test.alidns.com to the CDN CNAME domain through a CNAME record.

  4. After adding the CNAME record, return to the Domain Names page in the CDN console. When the CNAME status shows as configured, it indicates that the business domain has been connected to CDN.