Domain Name Connection

Last updated: 2019-09-26 12:27:43

PDF

You can connect domain names in the CDN Console for Tencent Cloud CDN services by the following steps:

Step 1. Adding a domain name

Log in to the CDN Console, click Domain Management on the left sidebar, and select Add Domain Name.

Go to the domain name addition page where you can configure a domain name.

Configuring the domain name

  1. Enter the domain name to be accelerated in Domain Name. Wildcard domain names are supported, such as *.test.com. Up to 10 domain names can be connected in batches in one single operation after you click Add.
    The domain name should meet the following conditions:
    • ICP filing for the domain name has been obtained from the MIIT.
    • The domain name has never been connected to Tencent Cloud CDN.
  2. Select the corresponding project in Project to manage the domain name by project. Here, the project is shared by all Tencent Cloud products. You can add a project in Project Management.
  3. Select Origin Type and enter the Origin Settings.
    There are two types of origin servers: External origin and COS origin.
    • External origin: If you already have a stable business server (i.e., origin server), you can enjoy CDN service by connecting it to the CDN Console and setting its DNS configuration, without the need to make any changes to it. The steps are as follows:
      1. Origin Server Type is origin server IP or domain name. The IP addresses and domain names to be entered into Origin Settings should meet the following conditions.
      2. If a domain name is entered, it cannot be the same as the access domain name (i.e., the connected accelerated domain name); the "DOMAIN NAME:PORT" format is supported, and the port number should be between 0 and 65535 (inclusive).
      3. You can enter multiple IP addresses in the format of "IP:PORT", and the port number should be between 0 and 65535 (inclusive). Origin-pull requests will access the IP addresses in turn.
      4. When there are multiple IP addresses, weight can be configured in the format of IP:PORT:WEIGHT, where PORT can be omitted. In this case, the format is IP::WEIGHT, where WEIGHT ranges from 0 to 1,000 (for IPv4 addresses only).
      5. The IPs cannot be private IPs.
    • COS origin: To use Tencent Cloud COS to store statically accelerated content, you can use a COS origin server to connect a domain name to CDN in the following way:
      1. Origin Server Type is COS. You can select the Bucket domain name in the drop-down list or by entering a keyword.
      2. If there is no bucket, you need to log in to the COS Console to create one (for instructions, see Creating a Bucket). You can also ask your developer account for corresponding bucket access.
      3. After selecting a Bucket as the origin server, you can manage its content in the COS Console.
  • COS V5 is fully deployed for connecting a COS origin server domain name to CDN. If you want to use a COS V4 bucket as an origin server, you need to go to the COS V4 Console and enable acceleration service for the corresponding bucket.
  • If your COS V5 bucket is private, you need to first allow the CDN service to access the corresponding COS bucket and then enable origin-pull access. After that, the resources in all private buckets can be delivered over the CDN public network, which involves relatively high security risks. Please be cautions.

Configuring the acceleration service

Select the acceleration service type and basic configuration.

  1. Business type
    The business type determines the resource platform to be scheduled by the domain name. The acceleration configuration varies by resource platform. Please select a business type based on your business conditions:
    • Static acceleration: Suitable for static resource acceleration scenarios such as ecommerce, websites, and gaming images.
    • Download acceleration: Suitable for scenarios such as game installations, audio/video downloads, and mobile phone firmware package distribution.
    • Streaming VOD acceleration: Suitable for VOD acceleration scenarios.
  2. Basic configuration
    CDN provides an Ignore Query String switch, which allows you to control whether to filter the parameters after "?" in the end users' request URLs. You can use this feature for flexible versioning or token-based authentication. For more information, see Ignore Query String Configuration.
  3. Cache expiration configuration
    Cache expiration configuration refers to a set of expiration rules that CDN cache nodes should comply with when caching your business contents. For more information, see Cache Expiration Configuration.

Completing the connection

Click Submit to add the domain name and wait until domain name configuration is delivered to the entire network, which usually takes 5 to 10 minutes.

Step 2. Configuring CNAME

For a successfully added domain name, you can view the acceleration CNAME assigned by CDN on the Domain Management page. You need to add a CNAME record for the domain name at your DNS service provider (such as DNSPod). Acceleration services will become available after the DNS configuration takes effect. For specific configuration methods, see CNAME Configuration.