When you add a new domain name to Alibaba Cloud Dynamic Route for CDN (DCDN), DCDN verifies your ownership of the domain name. If you pass the verification, DCDN identifies you as the owner of the domain name. If you add the domain name to DCDN again or add its subdomain names to DCDN, ownership verification is not required. You can use a Domain Name System (DNS) record or upload a verification file to prove your ownership.

Background information

In the following example, a.com is used to demonstrate how to prove the ownership of a domain name.

(Recommended) Method 1: Use a DNS record to prove the ownership

When you add a new domain name to DCDN, you can add a DNS record to prove that you own the domain name.

  1. Obtain the record type, the host name, and the record value.
    1. Log on to the DCDN console.
    2. In the left-side navigation pane, choose Domain Names > Add Domain Name.
      Follow the instructions on the page to add a TXT record.
      Note To generate the record value, call the DescribeDcdnVerifyContent operation. You can also add a domain name to DCDN by calling the AddDcdnDomain operation. Before you call the AddDcdnDomain operation, you must call the DescribeDcdnVerifyContent operation to obtain the record value and then perform the following steps to add a TXT record.
  2. Add a DNS record.
    In this example, Alibaba Cloud DNS is used to add a DNS record. You can add a DNS record through other service providers such as DNSPod or Xinnet in a similar way.
    1. Log on to the Alibaba Cloud DNS console.
    2. On the Manage DNS page, find the domain name a.com and click Configure in the Actions column.
    3. On the DNS Settings page, click Add Record.
    4. Enter the record type, the host name, and the record value that you have obtained in Step 1.
      Verify the ownership of a domain name 03
  3. Complete the verification process.
    1. Log on to the DCDN console.
    2. Click Verify to complete the verification process.

Method 2: Upload a verification file to prove the ownership

When you add a new domain name to DCDN, you can upload a verification file to prove that you own the domain name.

  1. Log on to the DCDN console.
  2. In the left-side navigation pane, choose Domain Names > Add Domain Name > Method 2: Verification File.
  3. Download the verification.html file.
    Note To generate the verification strings that you must include in the verification.html file, call the DescribeDcdnVerifyContent operation. You can also add a domain name to DCDN by calling the AddDcdnDomain operation. Before you call the AddDcdnDomain operation, you must call the DescribeDcdnVerifyContent operation to obtain the verification strings. Then, include the verification strings in the verification.html file and perform the following step to upload the file.
  4. Upload the verification file to the root directory of the origin server of your domain name.
    The origin server can 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. DCDN obtains the verification file by accessing the origin server at http://a.com/verification.html and determines whether the uploaded verification file meets requirements. Make sure that the verification file is accessible.
  5. Click Verify to complete the verification process.

FAQ

The following issues may occur when you add a new domain name to DCDN:

  • Why does DCDN verify the ownership of domain names?

    DCDN verifies the ownership of a new domain name to ensure that the owner adds the domain name. If User B adds a domain name of User A, conflicts and security risks may occur.

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

    Yes, you must pass the ownership verification for each account. Each Alibaba Cloud account is recognized as an independent user. Before you can use an account to add a new domain name to DCDN, the account must pass the ownership verification.

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

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

  • Do I need to prove my ownership of a domain name that is already added to DCDN?

    No, you do not need to prove your ownership of existing accelerated domain names. Assume that you have added the domain name b.a.com to DCDN and the Canonical Name (CNAME) record that is assigned to the domain name works in an expected manner. In this case, you are considered to own the domain name a.com. If you add a subdomain name of a.com, such as xx.a.com or xxx.a.com, you do not need to perform the ownership verification.

  • Do I need to prove my ownership of a domain name if I call the AddDcdnDomain operation to add the domain name to DCDN?

    Yes, you need to prove your ownership of the domain name in this case. The verification method is similar to the method that is used if you use the DCDN console to add the domain name. You can add a DNS record or upload a verification file to the root directory of the origin server of your domain name. Then, call the AddDcdnDomain operation to add the domain name to DCDN.

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

    To resolve this issue, you can submit a ticket. In the ticket, provide the reason why you cannot use the given methods to prove the ownership and include the information that can identify you as the domain name owner. Then, wait for Alibaba Cloud to perform manual verification.