Configuring Record Sets for a Website (for Domain Names Registered with HUAWEI CLOUD)
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.
Configuring website resolution for a domain name does not require the account or location of the web server. You only need to obtain its EIP.
This chapter applies to the following scenarios:
- You have registered a domain name with HUAWEI CLOUD and deployed the web server using the same HUAWEI CLOUD account.
- You have registered a domain name with HUAWEI CLOUD and deployed the web server using a different HUAWEI CLOUD account.
- You have registered a domain name with HUAWEI CLOUD and deployed the web server on a third-party cloud.
Prerequisites
- You have registered a domain name example.com with HUAWEI CLOUD.
- You have completed real-name authentication for example.com.
- You have a web server and obtained its IP address.
- If the web server is deployed on the Chinese mainland, you must have its domain name and IP address licensed.
- If you purchase a web server on HUAWEI CLOUD, you need to obtain an ICP license for it on HUAWEI CLOUD.
- If you purchase the web server from another cloud service provider, obtain the license from that cloud service provider.
Process
Figure 1 shows the process for configuring a domain name for your web server.
Step 1. View Your Domain Name
After you register a domain name with HUAWEI CLOUD, a public zone will be automatically created. You can view the domain name in the public zone list.
- 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, a zone named example.com has been created for you.
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 2 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 3 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.
Checking Whether the Record Sets Have Taken Effect
For details, see How Do I Test Whether a Record Set Is Working?
Last Article: Quick Start
Next Article: Configuring Record Sets for a Website (for Domain Names Registered with a Third-Party Registrar)

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