You can configure a self-managed DNS to forward domain name queries to an external DNS. This topic describes how to use this forwarding feature.
Create a forwarding rule
Navigate to Alibaba Cloud DNS for PrivateZone.
On the Forward Zone page, click the Forward Rule tab, and then click Add Forward Rule.
Fill out the form and submit it.
Form item
Description
Forward Zone
Enter the domain (Zone) for which you want to forward resolution requests.
ImportantTo forward all domain names (root domain), enter a period (
.).To forward top-level domains, you can enter values such as
com,cn, ortop.If a resolution request matches multiple forwarding domains, such as
example.com,com, and., the rule with the longest matching zone takes precedence. In this case, the request hitsexample.com.
Rule Name
Name the rule based on your business needs.
Forward to Address
The IP address and port of the server where DNS query traffic is forwarded. You can add up to six server entries. Both private and public IP addresses are supported.
Set the scope of the forwarding rule by selecting the corresponding resolution cluster from your self-managed DNS cluster. After you submit the form, the new forwarding rule is added to the forwarding rule list.
Modify a Forward Rule
On the Forward Zone page, select the Forward Rule tab, find the target Forward Rule, and then click Modify in the Actions column.
Modify the form items and submit the form.
Delete a Forward Rule
On the Forward Zone page, select the Forward Rule tab, find the target Forward Rule, and then click Delete in the Actions column.
A prompt appears asking you to confirm the node deletion.
ImportantIf the current Forward Rule is associated with a VPC, you must first disassociate the VPC from the rule before you can delete the rule.