All Products
Search
Document Center

Anti-DDoS:Change the CNAME record to redirect traffic to Sec-Traffic Manager

Last Updated:Feb 22, 2024

After you use Sec-Traffic Manager to create a scheduling rule for a domain name, you must change the CNAME record of the domain name to redirect traffic to Sec-Traffic Manager. The rule takes effect only after you change the CNAME record. This topic describes how to change the CNAME record of a domain name to redirect traffic to Sec-Traffic Manager. In this example, the DNS resolution service is provided by Alibaba Cloud DNS.

Prerequisites

A scheduling rule is added by using Sec-Traffic Manager. For more information, see Overview.

Background information

After you add a scheduling rule by using Sec-Traffic Manager, Sec-Traffic Manager generates a CNAME. To redirect inbound traffic to Sec-Traffic Manager, you must change the CNAME record of the domain name of the website to map the domain name to the CNAME that is assigned by Sec-Traffic Manager.

In the following example, a domain name is hosted on Alibaba Cloud DNS. If you use a third-party DNS resolution service, the following example is provided for reference only.

Assume that the domain name that is specified in the scheduling rule is aliyundoc.com. The following procedure describes how to change and add DNS records in the Alibaba Cloud DNS console.

Procedure

  1. Log on to the Alibaba Cloud DNS console.

  2. On the Domain Name Resolution page, find the domain name that you want to manage and click DNS Settings in the Actions column.

  3. On the DNS Settings page, find the DNS record that you want to modify and click Modify in the Actions column.

    Note

    If you cannot find the DNS record that you want to change in the list, you can click Add DNS Record to add a record.

  4. In the Edit Record or Add Record panel, set the Type parameter to CNAME and the Value parameter to the CNAME that is assigned by Sec-Traffic Manager.

    To query the CNAME, log on to the Anti-DDoS Pro console and choose Provisioning > Sec-Traffic Manager.

  5. Click OK and wait for the settings to take effect.

  6. Check whether your website can be accessed from a browser.