How Do I Add a Third-Party Domain Name?
Symptom
If you have registered a domain name with a third-party registrar, and you want to use UCS to manage application traffic, you can add the domain name to Domain Name Service (DNS) on Huawei Cloud. The UCS traffic management console automatically obtains the domain name that has been resolved.
Step 1: Add a Domain Name
If your domain name is registered with a third-party registrar, create a public zone and add record sets to it on the DNS console.
- Log in to the Huawei Cloud console.
- Move the cursor to the
icon on the left of the page. In the service list, choose Networking > Domain Name Service.
The DNS console is displayed.
- In the navigation pane, choose Public Zones. On the displayed page, click Create Public Zone in the upper right corner.
- Set Domain Name to your registered domain name, for example, example.com.
For details about the parameters, see Creating a Public Zone.
- Click OK.
View the created public zone on the Public Zones page.
If the system displays a message indicating that the public zone has been created by another tenant, handle the issue by referring to Reclaiming a Public Zone.
Click the domain name to view SOA and NS record sets automatically generated for the zone.
- The SOA record set includes administrative information about your zone, as defined by the Domain Name System (DNS).
- The NS record set defines the authoritative servers for the domain name.
You can modify the NS record set based on the region of the domain name. For more information about DNS servers, see What Are Huawei Cloud DNS Servers?
Step 2: Change DNS Servers of the Domain Name
The DNS service provides authoritative DNS servers for domain resolution.
After you create a public zone, an NS record set is generated, which specifies the DNS servers provided by the DNS service.
If DNS server addresses of the public zone are not the same as those in the NS record set, the DNS service will not be able to resolve the domain name. You must change the DNS server addresses of the domain name on the registrar's website.

Generally, the changes to DNS server addresses take effect within 48 hours, but the time may vary depending on the domain name registrar's cache duration.
- Query the DNS server addresses of the DNS service.
- Log in to the Huawei Cloud console.
- Move the cursor to the
icon on the left of the page. In the service list, choose Networking > Domain Name Service.
The DNS console is displayed.
- In the navigation pane, choose Public Zones.
The Public Zones page is displayed.
- Click the name of the public zone you created.
Locate the NS record set. The DNS server addresses provided by the DNS service are displayed under Value.
Figure 1 NS record set returned by the system
- Change the DNS server addresses of the domain name.
Log in to the domain name registrar website and change the addresses to Huawei Cloud DNS server addresses.
ns1.huaweicloud-dns.com
ns1.huaweicloud-dns.cn
ns1.huaweicloud-dns.net
ns1.huaweicloud-dns.org
For details, see the operation guide on the domain name registrar's website.
Step 3: Add a Scheduling Policy on UCS
- After the DNS record set is added, return to the Create Traffic Policy page of the UCS console and select the new domain name. If the domain name is not displayed, click
on the right to refresh the drop-down list.
Figure 2 Creating a traffic policy - Add a policy for the new domain name by referring to Creating a Traffic Policy.
Figure 3 Scheduling policy
- Check whether the created scheduling policy takes effect.
Take the Linux operating system as an example. You can run the following command in a CLI tool connected to the Internet:
dig <target-domain-name>
If your device has not installed dig (Domain Information Groper), install it first. If you are using a CentOS device, run the yum install bind-utils command first.
If the following information is displayed and the IP address of ANSWER SECTION is the load balancer IP of the destination cluster, the scheduling policy takes effect.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot