After you use Sec-Traffic Manager to create a scheduling rule for a domain name, you must update the CNAME record of the domain name to reroute website traffic to Sec-Traffic Manager. The rule takes effect only after you update the CNAME record. This topic describes how to use Sec-Traffic Manager to modify the CNAME record of a domain name to reroute traffic. In this example, the DNS resolution service is provided by Alibaba Cloud DNS.
- General rules are used to map the domain names of protected cloud resources to the CNAME record of a specific forwarding rule.
- CDN interaction rules are used to map domain names that have CDN interaction enabled to specific CNAME records assigned by Sec-Traffic Manager.
In the following example, the domain name is managed by Alibaba Cloud DNS.
If you use third-party DNS services, log on to the system of the DNS provider to modify the DNS records. The following example is for reference only.
Assume that the domain name in a scheduling rule is
bgp.ddostest.com. You can perform the following steps to modify or add DNS records in the Alibaba
Cloud DNS console.
- Log on to the Alibaba Cloud DNS console.
- On the Manage DNS page, find the domain name
ddostest.comand click Configure in the Actions column.
- On the DNS Settings page, find the A record or CNAME record whose Host is bgp and click Edit in the Actions column.
Note If you cannot find the DNS record that you want to manage in the list, you can click Add Record to add the record.
- In the Edit Record or Add Record dialog box, set Type to CNAME and change Value to the CNAME record of the scheduling rule or CDN interaction domain name.
- Click OK and wait for the settings to take effect.
- Check whether the website can be accessed.