When you add a new domain name to Alibaba Cloud Content Delivery Network (CDN), Alibaba Cloud CDN must verify the ownership of the domain name. After you pass the verification, Alibaba Cloud CDN identifies you as the owner of the domain name. If you add the domain name to Alibaba Cloud CDN again, or add its subdomain names to Alibaba Cloud CDN, ownership verification is not required. The following example uses a.com to demonstrate how to prove the ownership of a domain name.

Use a DNS record to prove the ownership

When you add a new domain name to Alibaba Cloud CDN, you can add a DNS record to prove the ownership of your domain name.

  1. Obtain the record type, host name, and record value.
    1. Log on to the Alibaba Cloud CDN console.
    2. In the left-side navigation pane, choose Domain Names > Add Domain Name. If this is your first time adding the domain name to Alibaba Cloud CDN, follow the instructions on the page to add a TXT record.
  2. Add a DNS record.
    1. Log on to the Alibaba Cloud DNS console. This example uses Alibaba Cloud DNS to add a DNS record. The procedure to add a DNS record through other service providers such as DNSPod and Xinnet is similar.
    2. On the Manage DNS page, find the domain name a.com and click Configure in the Actions column.
    3. Click Add Record. Enter the record type, host name, and record value obtained in step 1.
  3. Prove the ownership of your domain name.
    1. Log on to the Alibaba Cloud CDN console.
    2. Click Verify to complete the verification.

Upload the verification file to prove the ownership

If this is your first time adding the domain name to Alibaba Cloud CDN, you can upload the verification file to prove the ownership of your domain name.

  1. Log on to the Alibaba Cloud CDN console.
  2. In the left-side navigation pane, choose Domain Names > Add Domain Name > Method 2: Verification File.
  3. Download the verification.html verification file.
  4. Upload the verification file to the root directory of the origin server of your domain name. The origin server may be an Elastic Compute Service (ECS) instance, Object Storage Service (OSS) bucket, Cloud Virtual Machine (CVM) instance, Container-Optimized OS (COS) instance, or Elastic Compute Cloud (EC2) instance.

    Alibaba Cloud CDN will visit the origin site http://a.com/verification.html to obtain the verification file and determine whether you have uploaded the verification file as required. Make sure that the file is accessible.

  5. Click Verify to complete the verification.

FAQ

The following issues may occur when you add a new domain name to Alibaba Cloud CDN.

  • Why does Alibaba Cloud CDN need to verify the ownership of domain names?

    Ownership verification is required to make sure that the domain name is added by its owner. If a domain name of User A is added to Alibaba Cloud CDN by User B, conflicts and security risks may occur.

  • What can I do if I cannot prove the ownership of my domain name by adding a DNS record or uploading the verification file to the origin server?

    To address this issue, you can submit a ticket. In the ticket, state the reason why you cannot prove the ownership through the given methods, and include information that can prove your identity as the domain owner. Alibaba Cloud will conduct manual verification.

  • I have multiple Alibaba Cloud accounts. Do I need to pass ownership verification for each account when I add new domain names to Alibaba Cloud CDN under different accounts?

    Yes. Each Alibaba Cloud account is recognized as an independent user. Each account must pass ownership verification for adding a new domain name to Alibaba Cloud CDN.

  • After I pass ownership verification by adding a DNS record or uploading the verification file, can I delete the record or file?

    Yes. The required DNS record or file is used for ownership verification only. After you pass the verification, you can delete the record or file.