All Products
Search
Document Center

Dynamic Content Delivery Network:Add a domain name to IPA

Last Updated:Sep 04, 2023

IP Application Accelerator (IPA) is an acceleration feature that is developed by Alibaba Cloud. IPA provides Layer 4 acceleration based on TCP or UDP. IPA accelerates data transmission over networks, reduces latency, and improves the accessibility of applications. This topic describes how to enable IPA and add a domain name to IPA.

Prerequisites

Dynamic Content Delivery Network (DCDN) is activated. For more information, see Activate DCDN.

Step 1: Enable IPA

You cannot enable IPA by yourself. To enable IPA, submit a ticket.

Step 2: Add a domain name to IPA

Important

IPA is separate from DCDN. You cannot add a domain name to DCDN and IPA at the same time. If you have added a domain name to DCDN and you want to use IPA, you need to remove the domain name from the Domain Names page in the DCDN console and then perform the following steps to add the domain name to IPA.

  1. Log on to the DCDN console.
  2. Add a domain name to IPA.

    1. In the left-side navigation pane, click IP Application Accelerator.

    2. On the Domain Names tab, click Add Domain Name.

    3. On the Add Domain Name tab, configure the parameters that are described in the following table.

      Section 1: Configure basic information

      添加域名

      Parameter

      Description

      Domain Name to Accelerate

      • Domain name type: Specify a domain name such as example.aliyundoc.com or a wildcard domain name such as *.aliyundoc.com.
      • Domain name format: The domain name must be in lowercase letters. Chinese characters are not supported.
        Important

        If the domain name contains Chinese characters, for example, 阿里云.网址, you must apply for an ICP number for the Chinese domain name and use the Punycode tool to convert the Chinese characters into English letters, such as xn--fiq****.xn--eq****. Then, specify the converted domain name as the domain name that you want to accelerate.

      Resource Group

      Select the default resource group or a custom resource group. For information about how to create a resource group, see Create a resource group.

      Business Type

      Select IP Application Accelerator. After you configure the Business Type parameter, you cannot modify the parameter.

      Protocol Type

      Select TCP or UDP based on your business requirements. After you configure the Protocol Type parameter, you cannot modify the parameter.

      Important

      To enable UDP, submit a ticket.

      Acceleration Region

      • Chinese Mainland Only: The users and origin servers reside in the Chinese mainland.

      • Global: The users and origin servers can be located across the world.

      • Global (Excluding the Chinese Mainland): The users and origin servers reside in countries or regions outside the Chinese mainland, including Hong Kong (China), Macao (China), and Taiwan (China).

      Note
      • If you select Global or Global (Excluding the Chinese Mainland), you need to submit a ticket for IPA to take effect.

      • If you select Chinese Mainland Only or Global, you need to apply for an ICP number for the domain name. We recommend that you apply for ICP numbers in Alibaba Cloud ICP Filing System. After you submit the domain name information, the Ministry of Industry and Information Technology (MIIT) may not immediately update the filing results in their database. We recommend that you configure the domain name 8 hours after you submit the domain name information.

      • The pricing varies based on the acceleration region. Select an acceleration region based on your business requirements. For more information about billing, visit the DCDN pricing page.

      Section 2: Configure an origin server

      If you want to add multiple origin servers, repeat the step for configuring an origin server. The following table describes the parameters.

      Parameter

      Description

      Type

      • IP address: You can configure one or more IP addresses for an origin server. Internal IP addresses are not supported. IPv4 addresses and IPv6 addresses are supported, and you must configure at least one IPv4 address. Public IP addresses of Alibaba Cloud Elastic Compute Service (ECS) instances do not need to be reviewed.
      • Origin domain name: You can configure one or more origin domain names.
        Configuration rules for origin domains (click to expand rule details)
        • The origin domain cannot be the same as the accelerated domain name. Otherwise, a back-to-origin error occurs due to loop resolution.
        • The format of the origin domain name:
          • The domain name must be 1 to 67 characters in length.
          • The domain name can contain lowercase letters, digits, and hyphens (-). Example: example.com.
          • The domain name cannot contain Chinese characters, uppercase letters, or special characters other than hyphens (-). The domain name cannot be only a hyphen (-). A hyphen (-) in a domain name cannot be followed by another hyphen (-). The domain name cannot start or end with a hyphen (-). If the domain name contains Chinese characters such as 阿里云.网址, you must apply for an ICP number for the domain name in Chinese characters, and use the tool Punycode to convert the domain name to English letters, such as xn--fiq****.xn--eq****. Then, you can specify it as the domain name to be accelerated.
        • You cannot add the domain name of an Alibaba Cloud Application Load Balancer (ALB) instance, such as, example.hangzhou.alb.aliyuncs.com, as the address of an origin server. However, you can configure a CNAME record for an ALB instance to resolve a service domain name, such as origin.example.com, to the IP address of the ALB instance. For more information, see Configure a CNAME record. Then, set the service domain name to the domain name of the origin server that is accelerated by DCDN.

      Priority

      You can configure priorities to specify primary and secondary origin servers. The primary origin server has a higher priority than the secondary origin server. DCDN preferably redirects requests to the primary origin server. If a fault occurs on the primary origin server, requests are redirected to the secondary origin server. The priority ranges from 0 to 127. A smaller value indicates a higher priority. By default, the priority of the primary origin server is 20, and the priority of the secondary origin server is 30. If you want to specify other values, submit a ticket.

      For example, you have specified two origin servers: Server A and Server B. Server A is the primary origin server and Server B is the secondary origin server. In this case, DCDN preferably redirects requests to Server A. If Origin Server A fails, Alibaba Cloud CDN redirects user requests to Origin Server B. After Origin Server A recovers, Alibaba Cloud CDN fails back to Origin Server A.

      Weight

      If origin servers have the same priority, DCDN redirects requests to the origin servers based on the weights of the origin servers. This way, loads are balanced among the origin servers. You can specify a weight based on your business requirements.

      • The weight of an origin server ranges from 1 to 100. An origin server that has a higher weight receives more requests.

      • Default value: 10.

      For example, you specify Origin Server A and Origin Server B as primary origin servers. If the weight of Origin Server A is 80 and that of Origin Server B is 20, Alibaba Cloud CDN redirects 80% of requests to Origin Server A and 20% of requests to Origin Server B.

      Port

      Specify a custom acceleration port. Valid values: 1 to 65535. You can specify only one port. If you want to specify more ports, submit a ticket.

      Note
      • The following ports are not supported:

        22, 123, 161, 162, 179, 830, 2049, 2601, 2605, 3389, 5049, 7547, 8082, 8087, 8182, 8888, 9998, 15772, 15776, 15778, 15779, 18053, 18098, 18099, 18888, 19313, 19777, and 56667.

      • If you want to use port 80 or port 443, submit a ticket to confirm whether ports 88 and 443 are supported.

    4. Click Next.

      After the domain name is approved, the domain name is displayed on the Domain Names tab on the IP Application Accelerator page. The status is displayed as Running. This indicates that the domain name is added to IPA.

Step 3: Configure a CNAME record

After you add a domain name to IPA, copy the CNAME that is assigned to the domain name, and add a CNAME record in the system of your DNS service provider to map the domain name to the CNAME. For more information, see Add a CNAME record for a domain name.