Forward zone
The Forward Zone feature forwards DNS queries from Alibaba Cloud VPCs to external DNS systems based on forward rules and outbound endpoints. This feature is commonly used in hybrid cloud environments where services communicate across cloud and on-premises networks.
Available regions
Forward Zone is available in the following regions:
Public cloud regions: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Chengdu), China (Wuhan - Local Region), China (Zhongwei), Hong Kong (China), Singapore, UK (London), US (Virginia), Germany (Frankfurt), Japan (Tokyo), Indonesia (Jakarta), China (Ulanqab), China (Guangzhou), China (Heyuan), Philippines (Manila), South Korea (Seoul), SAU (Riyadh - Partner Region), Malaysia (Kuala Lumpur), Malaysia (Johor), US (Silicon Valley), UAE (Dubai)
Finance cloud regions: China East 1 Finance, China East 2 Finance, China South 1 Finance, China North 2 Finance (Preview)
Procedure
Outbound endpoint
Add an outbound endpoint
Go to the Alibaba Cloud DNS Private Zone console.
On the Forward Zone tab, click Outbound Endpoint, and then click Add Outbound Endpoint.
Configure the parameters and submit the form.
Endpoint Name: Enter a name for the endpoint.
Outbound VPC: All outbound DNS queries are forwarded through this VPC.
ImportantTo prevent service disruptions, you cannot change the Outbound VPC after the endpoint is created.
For the list of supported regions, see the Available regions section. To request this feature in other regions, submit a ticket and specify the desired region.
Security Group: Select a security group whose rules will apply to the outbound VPC.
ImportantEnsure that outbound traffic on port 53 is allowed in the security group. Inbound rules do not affect the Forward Zone feature.
You can only select unmanaged security groups.
Source IP Addresses of Outbound Traffic: Specify available IP addresses from a subnet within a zone. These IP addresses must not be in use by ECS instances. For high availability, add at least two source IP addresses in different zones. You can add up to six source IP addresses.
ImportantIf not specified, the system automatically assigns source IP addresses.
If a service-linked role is not available, Alibaba Cloud DNS Private Zone automatically creates one.
NoteA prompt is displayed each time you create an outbound endpoint, but the role is created only if it is not available.
The newly created endpoint appears in the Outbound Endpoint list. The status of an endpoint can be Normal, Creating, Modifying, Modify failed., or Abnormal.
ImportantThe creation process takes approximately 5 to 10 minutes. If the status is Creating, wait for the process to complete.
Modify an outbound endpoint
Go to the Alibaba Cloud DNS Private Zone console.
On the Forward Zone tab, select Outbound Endpoint, and then click Edit in the Actions column of the target endpoint.
Modify the settings and submit the form.
After you submit the changes, the endpoint's status changes to Modifying. During this time, you cannot modify or delete the endpoint.
Delete an outbound endpoint
Go to the Alibaba Cloud DNS Private Zone console.
On the Forward Zone tab, select Outbound Endpoint, and click Delete in the Actions column of the target endpoint.
In the confirmation dialog box, confirm the deletion of the outbound endpoint.
If the outbound endpoint is associated with a forward rule, you must delete the corresponding forward rule before deleting the outbound endpoint. For more information, see Delete a forward rule.
Forward rule
Create a forward rule
Go to the Alibaba Cloud DNS Private Zone console.
On the Forward Zone tab, select Forward Rule, and click Add Forward Rule.
Configure the parameters and submit the form.
Forward Zone: Enter the domain name (zone) for which you want to forward DNS queries.
ImportantTo forward queries for all domains, enter a period (
.).Top-level domain (TLD) forwarding is supported. For example, you can enter
com,cn, ortop.If a query matches multiple forward zones, such as
example.com,com, and., the rule for the most specific domain (example.com) takes precedence based on the longest-match principle.
Forward to Address: Specify the IP addresses and ports of the destination DNS servers. You can add up to six servers. Both private and public IP addresses are supported.
ImportantIf the outbound VPC and the inbound VPC are the same, the forward rule associated with an outbound endpoint cannot use a forward-to address that is the same as the IP address of the inbound endpoint.
The following IP address ranges are reserved by the system and cannot be used as forward to addresses for an external DNS system: 100.100.2.136 to 100.100.2.138, and 100.100.2.116 to 100.100.2.118.
If your external DNS server uses a public IP address and the ECS instances in the Outbound VPC do not have public IP addresses, you must enable a NAT Gateway and configure SNAT entries for a VPC NAT gateway.
Effective Scope: Set the effective scope of the forward rule.
Effective in VPCs: Select the VPCs in which the forward rule takes effect. You must also select an outbound endpoint.
Outbound Endpoint: Associate the rule with an outbound endpoint, which is the resolver endpoint that forwards DNS query traffic to the specified destination IP addresses. If the rule takes effect in Alibaba Cloud VPCs, you must configure an outbound endpoint, and it must be in the same region as the associated VPCs.
Effective in on-premises DNS clusters: Select a deployed resolution service cluster.
ImportantWhen different forward rules are associated with the same VPC, the forward zone must be unique.
If a forward rule and a private zone are configured with the same effective scope, the forward zone can be the same as the private zone, and the private zone preferentially handles DNS requests from the associated VPC.
You can configure the effective scope to include both VPCs and on-premises DNS clusters.
Click OK. The new forward rule appears in the Forward Rule list.
Modify a forward rule
Once a forward rule is created, the rule type and forward zone cannot be modified. You can edit the forward to address and effective scope.
Go to the Alibaba Cloud DNS Private Zone console.
To modify the forward to address: On the Forward Zone tab, select Forward Rule. Then, click Modify in the Actions column of the target rule.
To modify the effective scope: On the Forward Zone tab, select Forward Rule. Then, click Effective Scope in the Actions column of the target rule.
Modify the settings and submit the form.
Delete a forward rule
Go to the Alibaba Cloud DNS Private Zone console.
On the Forward Zone tab, select Forward Rule, and click Delete in the Actions column of the target rule.
In the dialog box that appears, confirm the deletion.
ImportantIf the forward rule is associated with a VPC, you must disassociate it from the VPC before you can delete the rule.