All Products
Search
Document Center

CDN:Transfer a domain name to another Alibaba Cloud account

Last Updated:Nov 12, 2024

You can use the domain name transfer tool to transfer a domain name that you added to Alibaba Cloud CDN to another Alibaba Cloud account.

Scenarios

  • You can use the domain name transfer tool to transfer domain names between Alibaba Cloud accounts in the following scenarios:

    • You have multiple Alibaba Cloud accounts and want to transfer domain names from Account A to Account B.

    • You are prompted that a domain name has been added when you add the domain name to Alibaba Cloud CDN. However, you do not know which account the domain name belongs to, and you want to transfer the domain name to your account.

  • If you want to transfer a domain name that is added to another service, such as ApsaraVideo Live, to Alibaba Cloud CDN, submit a ticket.

Before you begin

  • Make sure that the old and new accounts for the domain name transfer have no overdue payments.

  • Attach the AliyunCDNFullAccess policy to the RAM user if you transfer a domain name as a RAM user. For more information, see Grant permissions to the RAM user.

Usage notes

  • To ensure security, you can transfer only one domain name at a time.

  • If the number of domain names that you add to an account reaches the upper limit, go to the Quota Center to increase the upper limit before you transfer the domain name. For more information, see Quota management.

  • Make sure that the wildcard domain name and the exact match domain name of the same root domain, such as .aliyundoc.com and example.aliyundoc.com, belong to the same account. Otherwise, configuration conflicts may occur. The configuration of the exact match domain name prevails.

  • If the domain name that you want to transfer is still providing services, take note of the following items to prevent business interruptions:

    • If the origin server of the domain name that you want to transfer is an Object Storage Service (OSS) bucket, and you have enabled private bucket access for the domain name and configured a Security Token Service (STS) token to redirect requests to private OSS buckets in the same Alibaba Cloud account, authentication may fail after you transfer the domain name to another account. As a result, origin fetch fails. Therefore, you need to change the authentication method of the domain name to permanent security token before you transfer the domain name. For more information, see Configure access to private OSS buckets.

    • If you have configured an SSL certificate for the domain name that you want to transfer, you are not notified of the certificate expiration after the domain name is transferred to another account. You need to re-upload the certificate to the new account.

  • Before you transfer a domain name, you need to disable features that are enabled for the old account, such as data monitoring, logs, and operations reports. If you do not disable the features, logs and reports continue to be delivered to the old account and fees are continuously generated. After you transfer a domain name to the new account, you need to configure the features for the domain name in the new account.

  • After you transfer a domain name to the new account:

    • You cannot use the resource plan of the old account to offset traffic fees that are generated by the domain name. Resource plans cannot be transferred to another account.

    • The resource groups and tags that are associated with the domain name also change. If you use resource groups or tags to manage the domain name, you need to configure resource groups or tags in the new account.

  • If your domain name is restricted from being transferred, a message is displayed during the transfer. You can submit a ticket to reach technical support.

Procedure

  1. Log on to the Alibaba Cloud CDN console.

  2. In the left-side navigation pane, click Domain Names.

  3. In the upper-right corner of the Domain Names page, click Transfer Domain Names.

  4. After you read and check the instructions, click OK.

  5. Enter the domain name that you want to transfer and verify the ownership of the domain name. For more information, see Verify the ownership of a domain name.

  6. Click Transfer.

Verify the ownership of a domain name

Method 1: Use a DNS record to verify the ownership (recommended)

  1. In the Verify Domain Ownership section, click Method 1: DNS Settings.

    Important

    Do not close the verification page before the verification is complete. If DNS record verification fails, you can use Method 2: Upload a verification file to verify the ownership.

    DNS验证

  2. Add a TXT record in the system of your DNS service provider.

    The following example shows how to add a TXT record to the DNS settings at Alibaba Cloud DNS. You can use similar methods to add TXT records to the systems of other DNS providers, such as Tencent Cloud and Xinnet.

    1. Log on to the Alibaba Cloud DNS console.

    2. On the Domain Name Resolution page, find the root domain example.com and click DNS Settings in the Actions column.

    3. Click Add DNS Record, set the Record Type parameter to TXT, set the Hostname and Record Value parameters to the values that are obtained in Step 1, and then use the default values for other parameters.

      image

    4. Click OK.

  3. After the TXT record takes effect, log on to the Alibaba Cloud CDN console and click Verify.

    If a message indicating that the domain name fails the verification appears, check whether the TXT record is correct. Wait for the TXT record to take effect and try again.

    The accelerated domain name image.example.com is used in the following examples to check whether the TXT record is correct.

    Note
    • If you add a TXT record, the TXT record immediately takes effect. If you modify a TXT record, the amount of time that is required for the updates to take effect is based on the TTL. The default TTL is 10 minutes.

    • If nslookup is not installed on Linux, you can run the yum install bind-utils command on CentOS or the apt-get install dnsutils command on Ubuntu to install nslookup.

    Windows

    Open Command Prompt in Windows, and then run the nslookup -type=TXT verification.example.com command. You can check whether the TXT record is correct based on the output.

    image

    Linux

    Run the nslookup -type=TXT verification.example.com command. You can check whether the TXT record is correct based on the output.

    image

Method 2: Upload a verification file to verify the ownership

  1. In the Verify Domain Ownership section, click Method 2: Verification File.

    Do not close the verification page before the verification is complete.文件验证

  2. Download the verification.html file.

  3. Upload the verification file to the root directory on the server of the root domain name. The server can be an Elastic Compute Service (ECS) instance, an Object Storage Service (OSS) bucket, a Cloud Virtual Machine (CVM) instance, a Cloud Object Storage (COS) instance, or an Elastic Compute Cloud (EC2) instance. For example, if the domain name is image.example.com, you need to upload the file to the root directory of example.com.

  4. After you make sure that the verification file is accessible from http://example.com/verification.html, click Verify.

    Alibaba Cloud CDN accesses http://example.com/verification.html on your server for verification.

    • If the record value in the file is the same as the record value in the verification file, the verification is successful.

    • Otherwise, the verification fails. Make sure that the preceding URL is accessible and the file that you uploaded is valid.

  5. Click Verify.