Configuring Record Sets for a Website (for Domain Names Registered with a Third-Party Registrar)
Scenarios
After you register a domain name and set up a website using an IP address, you need to configure the domain name so that visitors can access your website on the Internet.
For example, you can deploy a web server with an IPv4 EIP. To access the website through domain name example.com and its subdomain www.example.com, do as follows:
- Add an A record set that maps the domain name example.com to the EIP.
- Add an A record set that maps the subdomain www.example.com to the EIP.
You can also configure website resolution using the function of quickly adding a record set to the domain name of the website.
You only need to obtain the EIP of the web server when you configure website resolution for a domain name. You do not need the account and location of the web server.
This section applies to the following scenarios:
- You have registered a domain name with another cloud service provider and deployed the web server on HUAWEI CLOUD.
- You have registered a domain name with another cloud service provider and deployed the web server on the same cloud as the domain name.
- You have registered a domain name with a third-party registrar and deployed the web server on a cloud that is not HUAWEI CLOUD.
Prerequisites
- You have registered example.com with the third-party registrar as your domain name.
- If example.com is registered on the Chinese mainland, you must have completed the real-name authentication.
- You have built a web server and obtained its IP address.
- If the web server is deployed on the Chinese mainland, you must obtain the license for its domain name and IP address.
Process
Figure 1 shows the process for configuring a domain name for your web server.
Step 1. Create a Public Zone
If your domain name is registered with a third-party registrar, you must create a public zone and add record sets for the domain name.
- Log in to the management console.
- In the Network category, click Domain Name Service.
The DNS console is displayed.
- In the navigation pane, choose DNS Resolution > Public Zones.
The Public Zones page is displayed.
- Click Create Public Zone.
- In the Create Public Zone dialog box, set Name to example.com and set other parameters.
For detailed descriptions of the parameters, see Creating a Public Zone.
Figure 2 Creating a public zone
- Click OK.
A public zone example.com is created. You can view its information in the zone list on the Public Zones page.
Figure 3 Public zone list
If the system displays a message indicating that the public zone has already been created by another user, see Regaining a Domain Name.
Click the zone name to view detailed zone information. You can view SOA and NS record sets created by the system.
- The SOA record set defines the DNS server that is the authoritative information source for a particular domain name.
- The NS record set defines authoritative DNS servers for a domain name.
You can modify the NS record set based on the region of the domain name. For more information about DNS server addresses, see What Are HUAWEI CLOUD DNS Servers?
Step 2. Add an A Record Set for the Domain Name
To access the website using example.com, you need to add an A record set to it.
- In the zone list on the Public Zones page, click the name of the public zone (example.com) you created.
The Record Sets page is displayed.
- Click Add Record Set.
- In the displayed dialog box, enter the following information for the A record set:
- Name: Leave this parameter blank. The system automatically considers example.com as the name, and requests are routed to example.com.
- Type: Set it to A – Map domains to IPv4 addresses.
- Value: Enter the EIP of the web server.
Retain default settings for other parameters. For detailed descriptions of the parameters, see Adding an A Record Set.
Figure 4 Adding an A record set
- Click OK.
The added record set is displayed in the list. Ensure that the status of the record set is Normal.
Step 3. Add an A Record Set for the Subdomain
To access the website using www.example.com, add an A record set.
- In the zone list on the Public Zones page, click the name of the public zone (example.com) you created.
The Record Sets page is displayed.
- Click Add Record Set.
- In the displayed dialog box, enter the following information for the A record set:
- Name: Set the value to www, indicating that the subdomain to be resolved is www.example.com.
- Type: Set it to A – Map domains to IPv4 addresses.
- Value: Enter the EIP of the web server.
Retain default settings for other parameters. For detailed descriptions of the parameters, see Adding an A Record Set.
Figure 5 Adding an A record set
- Click OK.
The record set you added is displayed in the list. Ensure that the status of the record set is Normal.
Step 4. Change DNS Server Addresses 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 server addresses provided by the DNS service.
If DNS server addresses of the public domain name 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 NDS 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 provided by the DNS service
- Log in to the management console.
- In the Network category, click Domain Name Service.
The DNS console is displayed.
- In the navigation pane, choose DNS Resolution > Public Zones.
The Public Zones page is displayed.
- In the zone list, 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 6 NS record set
Change the DNS server addresses of a domain name
Log in to the domain name registrar's website and change the DNS server addresses to those provided by the DNS service. Refer to the domain name registrar's documentation for detailed operations.
For details, visit the domain name registrar's website.
Checking Whether the Record Sets Have Taken Effect
For details, see How Do I Test Whether a Record Set Is Working?

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.