Step 4: Modifying DNS Resolution
After adding a domain name to AAD, you need to modify the DNS resolution to connect the domain name to AAD. All public network traffic is diverted to the high-defense IP address, and therefore your services on the origin servers are protected against DDoS attacks.
AAD supports A record-based access and CNAME-based access. The later is recommended. The CNAME-based access has the following advantages:
- Easy to use. You only need to modify the resolution configuration at a time during domain name resolution (for example, on Huawei Cloud DNS).
- Automatic line switchover. If an AAD line encounters an exception, the CNAME resolution can be automatically switched to other properly working lines.
- Service continuity. In a three-line package service, if a line is attacked and access is blocked, AAD automatically uses the other available lines to complete CNAME resolution, ensuring service availability.
This section uses Huawei Cloud DNS as an example to describe how to modify DNS record. The methods to modify DNS record on other platforms are similar.
Prerequisite
The domain name has been added to AAD.
Constraints
- When adding a CNAME record, you must delete the existing A records from the DNS record set. If they are not deleted, you will fail to add the new record because resolution conflicts may occur. Some DNS service providers allow you to change A records to CNAME records.
- The DNS configuration takes effect after a period of time. You can test the domain name resolution using some online test tools.
Impact on the System
The DNS configuration may affect current service operating. Therefore, you are advised to configure DNS during off-peak hours.
CNAME Access
After obtaining the CNAME value of the protected domain name, add the value to the DNS record set.
- Log in to the management console.
- Select a region in the upper part of the page, click in the upper left corner of the page, and choose . The Anti-DDoS Service Center page is displayed.
- In the navigation pane on the left, choose Domain Name Access page is displayed.
. The Figure 1 Domain name access
- In the CNAME column of the target domain name, click to copy the CNAME value of the domain name.
- Click in the upper left corner of the page and choose Networking > Domain Name Service.
- For details, see section Adding a CNAME Record Set.
If you have configured the hosts file in Step 3: Locally Verifying the Website Service Configuration for the test, delete the configuration after this step. Otherwise, protection exceptions may occur.
A Record-based Access
The following steps use the China Telecom line package as an example.
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click in the upper left corner of the page and choose Networking > Domain Name Service.
- Add and A record set. For details, see section Adding an A Record Set.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot