Getting Started with CDN
By following the procedure in this section, you can quickly get started with HUAWEI CLOUD CDN to accelerate your business. This section describes how to enable CDN, add a domain name, and configure CNAME.
Step 1: Enable CDN
- Log in to the HUAWEI CLOUD console. On the homepage of the management console, choose .
The CDN console is displayed.
- Choose to be billed by traffic or peak bandwidth and enable CDN as prompted.
- Log in to the CDN console again.
Step 2: Add a Domain Name
- Log in to the HUAWEI CLOUD console. On the homepage of the management console, choose .
The CDN console is displayed.
- In the navigation pane, choose Domains.
- On the Domains page, click Add Domain Name and configure a domain name, service area, service type, and origin server address.
- Click OK.
- Test your domain name before configuring a CNAME record to ensure that domain configurations are correct.
Step 3: Configure the CNAME Record
After a domain name is added, HUAWEI CLOUD CDN assigns a CNAME address to you. You need to point the domain name to the CNAME address so that requests destined for the domain name can be redirected to CDN nodes for acceleration.
download.game-apk1.com is used as an example. This domain name is resolved on HUAWEI CLOUD.
- Obtain the CNAME record of the domain name.
- Log in to the CDN console. In the navigation pane, choose Domains.
- On the Domains page, copy the CNAME record download.game-apk1.com.c.cdnhwc1.com.
- Add the CNAME record.
- Log in to the HUAWEI CLOUD console. On the homepage of the management console, choose . The DNS console is displayed.
- In the navigation pane, choose DNS Resolution > Public Zones. The public zone list is displayed.
- Click the domain name you want to add a record set to. In this example, the domain name is game-apk1.com. See the following figure.

- Click game-apk1.com. On the displayed page, click Add Record Set in the upper right corner. The Add Record Set dialog box is displayed. See the following figure.

- Configure the parameters as instructed. Table 1 describes the parameters. Retain the default values for the parameters that are not listed in the table.
Table 1 Parameter description Parameter
Description
Example
Name
Domain name prefix
download
Type
Type of the record set, which should be CNAME-Canonical name here
CNAME – Map one domain to another
Alias
Whether the record set will be associated with a cloud resource
No
Line
Used when the DNS server is resolving a domain name. It returns the IP address of the server according to the visitor source.
You must add a Default line to ensure that the website is accessible to users of all carriers.
Default
TTL (s)
Cache duration of the record set on a local DNS server. If your service address changes frequently, set TTL to a smaller value.
The default value is 300, which is, 5 minutes.
Value
Domain name alias
If CDN acceleration is not enabled, the value is the bucket domain name. If CDN acceleration is enabled, the value of this parameter is the CNAME record allocated by CDN.
download.game-apk1.com.c.cdnhwc1.com
- Click OK.
- Verify that the CNAME record has taken effect. Open the Windows command line interface and run the following command:
nslookup -qt=cname Acceleration domain name
If the CNAME record is displayed, the CNAME record has taken effect. A typical command output is shown in the following figure.

Last Article: Getting to Know CDN
Next Article: Basic CDN Functions


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.