All Products
Search
Document Center

Alibaba Cloud DNS:Forward module

Last Updated:Apr 02, 2024

Overview

The forward module forwards Domain Name System (DNS) requests for intranet zones in virtual private clouds (VPCs) to external DNS systems based on the configured forwarding rules and outbound endpoints. This is suitable for DNS resolution in hybrid cloud scenarios and DNS resolution between cloud and on-premises scenarios.

Supported regions

The forward module is available in the following regions:

  • Alibaba Cloud regions: China (Beijing), China (Shenzhen), China (Shanghai), China (Hangzhou), China (Zhangjiakou), China (Hohhot), China (Qingdao), China (Guangzhou), China (Chengdu), Indonesia (Jakarta), Germany (Frankfurt), UK (London), Singapore, China (Ulanqab), China (Hong Kong), US (Virginia), Philippines (Manila), Japan (Tokyo), South Korea (Seoul) and SAU (Riyadh).

  • Finance Cloud regions: China East 2 Finance, China South 1 Finance, China East 1 Finance.

Procedure

image.png

Outbound endpoints

Create an outbound endpoint

  1. Log on to the Alibaba Cloud DNS console.

  2. In the left-side navigation pane, click Private DNS (PrivateZone). In the upper-right corner of the Private DNS (PrivateZone) page, click Configuration Mode, and click the Forward Module tab.

  3. On the Forward Module tab, click the Outbound Endpoint tab, and click Create Outbound Endpoint.image.png

  4. In the Create Outbound Endpoint panel, specify the following parameters: Endpoint Name, Outbound VPC, Security Group, and Source IP Addresses of Outbound Traffic.

    image.png

    • Endpoint Name: Enter a name for the outbound endpoint based on your business requirements.

    • Outbound VPC: Select a VPC. All outbound DNS requests in the forward module are forwarded by this VPC.

      Important
      • After you create an outbound endpoint, you cannot change the specified outbound VPC of the endpoint. This prevents the forwarding of DNS requests from being interrupted due to misoperations.

      • For more information about the regions that support the forward module, see the "Supported regions" section of this topic. Alibaba Cloud continuously updates the module to support more regions. If you want other regions to support the forward module, submit a ticket .

    • Security Group: Select a security group that is associated with the VPC. The forwarding rules of the security group apply to the VPC.

      Note

      Only security groups that are not in managed mode are supported. For more information, see Managed security group

    • Source IP Addresses of Outbound Traffic: Enter available IP addresses that are not used by Elastic Compute Service (ECS) instances in the subnets in the specified zones. You must specify two to six IP addresses for the outbound endpoint to ensure high availability. We recommend that you specify the IP addresses in different zones.

      Important

      If you do not specify IP addresses, the system automatically allocates IP addresses to the outbound endpoint.

  5. Click OK. Private DNS will create a service-linked role if the role does not exist.

    Note

    Note: A message is displayed each time you create an outbound endpoint. If a role exists, no role is created.

  6. View the created outbound endpoints on the Outbound Endpoint tab. The states of outbound endpoints include Normal, Creating, Create Failed, Modifying, Modify Failed, and Abnormal.

    Important
    • The system takes 5 to 10 minutes to create an outbound endpoint. If an outbound endpoint is in the Creating state, wait for a few minutes.

    • You cannot modify or delete an outbound endpoint that is in the Creating state. If an outbound endpoint is in the Abnormal or Modify Failed state, submit a ticket to troubleshoot issues.

Modify the configurations of an outbound endpoint

  1. Log on to the Alibaba Cloud DNS console.

  1. In the left-side navigation pane, click Private DNS (PrivateZone). In the upper-right corner of the Private DNS (PrivateZone) page, click Configuration Mode, and click the Forward Module tab.

  2. On the Forward Module tab, click the Outbound Endpoint tab, find the outbound endpoint whose configurations you want to modify, and then click Edit in the Actions column.image.png

  3. In the Modify Outbound Endpoint panel, modify the following parameters based on your business requirements: Endpoint Name and Source IP Addresses of Outbound Traffic.

    image.png

  4. Click OK. The state of the endpoint changes to Modifying. You cannot modify or delete the endpoint that is in the Modifying state.

Delete an outbound endpoint

  1. Log on to the Alibaba Cloud DNS console.

  2. In the left-side navigation pane, click Private DNS (PrivateZone). In the upper-right corner of the Private DNS (PrivateZone) page, click Configuration Mode, and click the Forward Module tab.

  3. On the Forward Module tab, click the Outbound Endpoint tab. Find the outbound endpoint that you want to delete, and click Delete in the Actions column. In the Delete Confirmation message, click OK.image.png

Note

If the outbound endpoint is associated with a forwarding rule, delete the forwarding rule before you delete the outbound endpoint. For more information, see the Delete a forwarding rule section of this topic.

Forwarding rules

Create a forwarding rule

  1. Log on to the Alibaba Cloud DNS console.

  2. In the left-side navigation pane, click Private DNS (PrivateZone). In the upper-right corner of the Private DNS (PrivateZone) page, click Configuration Mode, and click the Forward Module tab.

  3. On the Forward Module tab, click the Forward Rule tab, and click Create Forward Rule.image.png

  4. In the Create Forward Rule panel, specify the following parameters:

    image.png

  • Rule Name: Enter a name for the forwarding rule based on your business requirements.

  • Rule Type: You can select only Forward to External IP Address.

  • Forward Zone: Enter the zone for which you want to forward DNS requests.

  • Outbound Endpoint: Select an outbound endpoint. The outbound endpoint is used to forward DNS requests to the specified IP addresses.

  • IP Addresses and Ports of External DNS: Enter the IP address and port number of the destination server to which the DNS requests are forwarded. You can enter up to six IP addresses and port numbers. Both private and public IP addresses are supported.

  • Important

    The following IP addresses are reserved by the system. You cannot specify them as the IP addresses of external DNS systems. 100.100.2.136 to 100.100.2.138 and 100.100.2.116 to 100.100.2.118.

  1. After you specify the preceding parameters, click OK. The created forwarding rule is displayed in the forwarding rule list.

    image.png

Important

You cannot modify the following parameters of a created forwarding rule: Rule Type, Forward Zone, and Outbound Endpoint. If you want to modify the preceding parameters, create a new forwarding rule and delete the original rule.

Modify a forwarding rule

  1. Log on to the Alibaba Cloud DNS console.

  2. In the left-side navigation pane, click Private DNS (PrivateZone). In the upper-right corner of the Private DNS (PrivateZone) page, click Configuration Mode, and click the Forward Module tab.

  3. On the Forward Module tab, click the Forward Rule tab. Find the forwarding rule that you want to modify and click Edit in the Actions column.image.png

  4. In the Modify Forward Rule panel, modify the Rule Name and IP Addresses and Ports of External DNS parameters, and click OK.

Delete a forwarding rule

  1. Log on to the Alibaba Cloud DNS console.

  2. In the left-side navigation pane, click Private DNS (PrivateZone). In the upper-right corner of the Private DNS (PrivateZone) page, click Configuration Mode, and click the Forward Module tab.

  3. On the Forward Module tab, click the Forward Rule tab. Find the forwarding rule that you want to delete and click Delete in the Actions column.image.png

  4. In the Delete Confirmation message, click OK. If the forwarding rule is configured with an effective scope, the operation fails.

    Important

    You must disassociate the forwarding rule from VPCs before you delete the forwarding rule. For more information about how to disassociate VPCs from a forwarding rule, see the Remove an effective scope from a forwarding rule section of this topic.

Manage the effective scope of a forwarding rule

Specify an effective scope for a forwarding rule

After you create a forwarding rule, you must specify an effective scope for the forwarding rule. In this way, the forwarding rule can take effect in the corresponding VPCs within the effective scope.

  1. Log on to the Alibaba Cloud DNS console.

  2. In the left-side navigation pane, click Private DNS (PrivateZone). In the upper-right corner of the Private DNS (PrivateZone) page, click Configuration Mode, and click the Forward Module tab.

  3. On the Forward Module tab, click the Forward Rule tab. Find the desired forwarding rule and click Effective Scope of Forward Rule in the Actions column.image.png

  4. Select one or more VPCs where the forwarding rule will take effect and click OK. You can associate the forwarding rule with VPCs across accounts. For more information, see Associate a zone with VPCs across accounts.

    image.png

Important
  • You can associate a forwarding rule with only VPCs that are deployed in the same region as the outbound endpoint specified in the rule.

  • If different forwarding rules are associated with the same VPC, the forward zones specified in the rules cannot be the same.

  • If a forwarding rule has the same effective scope as a built-in authoritative zone, the forward zone can be the same as the built-in authoritative zone, and the DNS requests in the associated VPCs are processed by the built-in authoritative module first.

Remove an effective scope from a forwarding rule

  1. On the Forward Rule tab, find the desired forwarding rule that is configured with an effective scope, and click Effective Scope of Forward Rule in the Actions column.

  2. In the Effective Scope of Forward Rule panel, delete the associated VPCs and click OK.

    image.png