tencent cloud

Content Delivery Network

Updates and Announcements
Release Notes
Announcements
User Tutorial
Product Introduction
Product Overview
Strengths
Use Cases
Term
Use Limits
CDN Performance Descriptions (Spot-check)
Purchase Guide
CDN Purchase Guide
ECDN Purchase Guide
Getting Started
Configuring CDN from Scratch
Adding Domain Names
CNAME Configuration
Domain Name Ownership Verification
FAQs about Domain Name Connection
Configuration Guide
Domain Management
Domain Name Configurations
Statistical Analysis
Purge and Prefetch
Log Management
EdgeOne
Service Query
Offline Cache
Permission Management
Permission Configuration
Console Permissions
Activate Real-time Logging as Sub-account/Collaborator
Use Cases
Accelerating Resources on COS with CDN
Practical Tutorial
Guide to Using the EdgeOne Tool for Migrating Content Delivery Network (CDN) Related Services
CDN - CVM
CDN - COS
Configuring CNAME via DNSPod
Regularly Storing CDN Logs
API Documentation
History
Introduction
API Category
Content Management APIs
Real-time Log APIs
Service Query APIs
Data Query APIs
Making API Requests
Log Query APIs
StopCdnDomain
Configuration Management APIs
Obsoleted APIs
Other APIs
Data Types
Error Codes
FAQ
Features
Billing
FAQs about Domain Name Connection
Cache Configuration FAQs
Purge and Prefetch
Statistical Analysis
FAQs about HTTPS
Connection
Errors
Troubleshooting Methods
Status Codes and Solutions
Node Cache Inconsistency
Slow Access Speed After CDN Activation
Low Traffic Hit Rate
404 Status Code
Page Display - CORS error
Resource Cache Failure
Service Level Agreement
Glossary

CNAME Configuration

PDF
Focus Mode
Font Size
Last updated: 2025-06-03 11:09:58




Preparations

Adding domain name

Before configuring a CNAME record, you need to add a domain name first. If you have already added one, proceed directly.

Directions

Configuration steps

You need to complete the configuration at the DNS service provider of your domain name. This document describes the configuration steps in Tencent Cloud and Alibaba Cloud:


Tencent Cloud

Quick configuration

If your domain service provider is Tencent Cloud, we recommend you use the quick CNAME record configuration feature. For more information, see Configuring CNAME via DNSPod.

Manual configuration

1. Log in to the CDN console and copy the CNAME address. Before your domain name is successfully resolved, a prompt icon is displayed next to the CNAME record. Copy the CNAME record value.
2. Log in to the DNSPod console and click Record.
3. Add a CNAME record and click OK.
4. Wait for the configuration to take effect.
Configuration description:
Configuration
Description
Host
It is the domain name prefix.

Example: to add a record for dnspod.com, select @ for Host. To add a record for www.dnspod.com, select www for Host.
Record Type
Select CNAME.
Split Zone
Select Default. DNSPod offers various split zone options for you to specify records for specific users. For more information, see Split Zone Description.
Value
Enter the domain name pointed to by the CNAME, e.g., xxx.xxx.com.cdn.dnsv1.com. After the record is generated, a . will be automatically added after the domain name.
Weight
Different record values in the same split zone of a host record can be set with different weights, so that resolution will be returned according to their weight ratios. Value range: 1–100.
MX
It refers to the priority. The lower the value, the higher the priority. We recommend you leave it empty.
TTL
It refers to the time to live. The smaller the value is, the less the time cost for record changes to take effect globally. The default value is 600 seconds.


Alibaba Cloud

If your DNS service provider is Alibaba Cloud, you can add a CNAME record as follows.
1. Log in to the CDN console and copy the CNAME address. Before your domain name is successfully resolved, a prompt icon is displayed next to the CNAME record. Copy the CNAME record value.
2. Log in to the Alibaba Cloud DNS console.
3. Click the domain name to be resolved to enter the resolution record page.
4. Click Add Record.
5. Select CNAME as the record type. Enter the host record as needed (such as www), which is the domain name prefix. Enter the CNAME record copied in step 1 as the record value. Retain the default settings of the split zone and TTL.


6. Finally, click Confirm.

Subsequent Operations

CNAME verification

The time it takes for a CNAME record to take effect varies by DNS service provider. It is generally within half an hour. You can also check whether the CNAME record is in effect by running nslookup or dig. If the CNAME record response is the CNAME configured, it indicates that the configuration is successful and the acceleration is enabled.
nslookup -qt=cname <acceleration domain name>


dig <acceleration domain name>



Directions

You have completed the basic configuration of the CDN service. For more CDN configurations, see the corresponding document in Configuration Guide.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback