All Products
Search
Document Center

Configure CNAME on HICHINA and Alibaba Cloud DNS

Last Updated: Apr 16, 2019

Overview

To use your own domain name in VOD, you must bind the domain name to a CDN domain and then resolve an IP address from the CDN domain.

After you add the domain name to VOD, a valid CNAME address is automatically generated. You must contact the DNS service provider to add a CNAME record for your domain name, in order to accelerate content delivery.

Procedure

Retrieve the CDN domain and CNAME

In the VOD console, choose Domain Names > Domain Names and copy the CNAME value of the CDN domain.

  1. After adding the domain name, you can see the assigned CNAME domain.

  2. On the Domain Names page, locate the CNAME domain corresponding to the target domain name and copy the CNAME domain for resolution configuration.

    Domain names

Change DNS resolution record and integrate CDN

1. Log on to the Alibaba Cloud console.

2. In the left-side navigation pane, choose Domain Name and Website (HiChina) > Alibaba Cloud DNS and log on to the Alibaba Cloud DNS console.

3. On the DNS List page, locate the target domain name and click Configure.

4. Click Add Record and add a CNAME record.

Add a DNS record

5. Set the CNAME record as follows:

  • Select CNAME as the record type.
  • For the host record, enter the prefix of the CDN domain according to the following rules:

    • If the CDN domain name is testvod.example.com, the prefix is testvod.
    • If the CDN domain name is www.example.com, the prefix is www.
    • If the CDN domain name is example.com, the prefix is @.
    • If the wildcard domain name is *.example.com, the prefix is *.
  • In the VOD console, choose Global Settings > Domain Names and copy the CNAME value. Enter the CNAME value in the Add DNS Record dialog box.

  • Set the TTL to the default value.

    Add a CNAME record

6. After configuring the settings, click Confirm to complete the resolution configuration.

Notes:

  • Typically, the resolution configuration takes effect after a short period. A newly created resolution configuration takes effect immediately without DNS refresh. If the CNAME is changed, it may take up to 72 hours to complete the update because the relevant data is cached on different DNS servers.
  • After a few minutes, ping the IP address resolved from the domain address by DNS. If the IP address can be successfully pinged, the CNAME was successfully configured. If the ping fails, troubleshoot the problem based on the preceding steps.
  • If an addition conflict occurs, change the CDN domain.