a.example.com
, for the first time, the same-level domain names, such as b.example.com
, and subdomain names can be directly connected without verification. However, if you want to connect second-level domain names, such as example.com
, ownership verification is required.*.a.example.com
, can be directly connected.Note:In scenarios where multi-level domain names are used, host records must be added only for the domain name regardless of the level of the added domain name, such as
c.b.a.example.com
,*.example.com
, andtest.example.com
. For example, if you add thec.b.a.example.com
subdomain name, you must add the_cdnauth.example.com
resolution record.
To add a resolution record of Tencent Cloud DNS, perform the following operations:
If your DNS provider is Tencent Cloud, log in to the DNSPod console, find the target domain name, click DNS, and add a TXT record. Set the Host parameter to _cdnauth
, the Record Type parameter to TXT
, and the Record Value parameter to the record value provided by Tencent Cloud CDN. Use the default settings for other parameters.
To add a resolution record of Alibaba Cloud DNS, perform the following operations:
If your DNS provider is Alibaba Cloud, log in to the DNS console of Alibaba Cloud, find the target domain name, and click DNS Settings in the Actions column. Set the Record Type parameter to TXT
, configure the Hostname and Record Value parameters, and use the default settings for other parameters.
3. Wait for the TXT record to take effect before you click the verification button to start verification. If the domain name fails to be verified, make sure that the TXT record is valid and has taken effect at the DNS provider. For information on how to check whether the TXT record has taken effect, see the related documentation.
4. After the domain name is verified, check whether the domain name is connected under another account. If yes, click Retrieve to retrieve the domain name. After the domain name is retrieved, the settings that are configured for the domain name under another account are cleared.
test.example.com
, you must upload the file to the example.com/
or test.example.com/
root directory.
Note:You can perform verification by uploading the file to a subdomain name only if you use the file verification method.
http://example.com/verification.html
or http://test.example.com/verification.html
before you click Verify. Your domain name will be successfully verified if the record you added is consistent with the content of the file. If the domain name cannot be verified, check whether the record and the content of the file are consistent.
Note:File verification does not support domain name retrieval. You can retrieve your domain name only if you use the DNS verification method.
Example:
In this example, the acceleration domain name is a.test.com
and the origin server is a COS biucket.
Call the CreateVerifyRecord operation to generate a TXT resolution record for an acceleration domain name.
{
"Response": {
"Record": "202009071516044acd018wf498457628cn75ba018ec9cv",
"RecordType": "TXT"
"RequestId": "8518c99c-a8eb-4930-a7d0-eff586d9cc37",
"SubDomain": "_cdnauth",
}
}
Add the TXT resolution record at your DNS provider, such as DNSPod.
Call the VerifyDomainRecord operation to check whether the resolution record takes effect.
{
"Response": {
"RequestId": "b6926bb2-d0b5-42bc-b17f-e4402bdb9e9b",
"Result": "true"
}
}
If the resolution record takes effect, call the AddCdnDomain operation to add the domain name.
Windows:
If the domain name that you connected is test.example.com
, open the command prompt and run the nslookup -qt=txt _cdnauth.example.com
command. Check whether the TXT record takes effect or is valid based on the output.
Linux or macOS:
If the domain name that you connected is test.example.com
, open the command prompt and run the dig _cdnauth.example.com txt
command. Check whether the TXT record takes effect or is valid based on the output.
It’s because your domain name has already been added to the VOD console. If you want to manage the domain name in the CDN console, it must be deleted from the VOD console and wait about 1 minute before adding it to the CDN console, or access other subdomain names.
Was this page helpful?