user guide - huaweiif your domain name is registered with a third-party registrar, you must create a...
TRANSCRIPT
Domain Name Service
User Guide
Issue 08
Date 2020-07-15
HUAWEI TECHNOLOGIES CO., LTD.
Copyright © Huawei Technologies Co., Ltd. 2020. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without priorwritten consent of Huawei Technologies Co., Ltd. Trademarks and Permissions
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.All other trademarks and trade names mentioned in this document are the property of their respectiveholders. NoticeThe purchased products, services and features are stipulated by the contract made between Huawei andthe customer. All or part of the products, services and features described in this document may not bewithin the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,information, and recommendations in this document are provided "AS IS" without warranties, guaranteesor representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in thepreparation of this document to ensure accuracy of the contents, but all statements, information, andrecommendations in this document do not constitute a warranty of any kind, express or implied.
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. i
Contents
1 Public Zone................................................................................................................................11.1 Overview.................................................................................................................................................................................... 11.2 Creating a Public Zone.......................................................................................................................................................... 21.3 Managing Public Zones......................................................................................................................................................... 51.4 Regaining a Domain Name................................................................................................................................................. 8
2 Private Zone............................................................................................................................112.1 Overview.................................................................................................................................................................................. 112.2 Creating a Private Zone...................................................................................................................................................... 122.3 Managing Private Zones.....................................................................................................................................................152.4 Associating a VPC with a Private Zone..........................................................................................................................182.5 Disassociating a VPC from a Private Zone................................................................................................................... 20
3 Record Set............................................................................................................................... 213.1 Overview.................................................................................................................................................................................. 213.2 Record Set Types and Configuration Rules.................................................................................................................. 233.3 Adding Record Sets.............................................................................................................................................................. 263.3.1 Adding an A Record Set.................................................................................................................................................. 263.3.2 Adding an AAAA Record Set.......................................................................................................................................... 303.3.3 Adding an NS Record Set................................................................................................................................................333.3.4 Adding a CNAME Record Set........................................................................................................................................ 373.3.5 Adding an MX Record Set...............................................................................................................................................403.3.6 Adding a TXT Record Set................................................................................................................................................ 433.3.7 Adding an SRV Record Set............................................................................................................................................. 473.3.8 Adding a CAA Record Set............................................................................................................................................... 513.3.9 Adding a PTR Record........................................................................................................................................................543.4 Managing Record Sets........................................................................................................................................................ 573.5 Creating a Wildcard DNS Record Set............................................................................................................................. 603.6 Searching for Record Sets Globally.................................................................................................................................633.7 Importing Record Sets......................................................................................................................................................... 643.8 Exporting Record Sets..........................................................................................................................................................653.9 Migrating a Domain Name............................................................................................................................................... 66
4 PTR Record.............................................................................................................................. 684.1 Overview.................................................................................................................................................................................. 68
Domain Name ServiceUser Guide Contents
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. ii
4.2 Creating a PTR Record........................................................................................................................................................ 694.3 Managing PTR Records....................................................................................................................................................... 71
5 Resolution Line...................................................................................................................... 745.1 Overview.................................................................................................................................................................................. 745.2 Configuring ISP Lines for Record Sets............................................................................................................................755.3 Configuring Region Lines for Record Sets.................................................................................................................... 795.4 Configuring Weighted Resolution................................................................................................................................... 87
6 Key Operations Recorded by CTS...................................................................................... 906.1 DNS Operations Recorded by CTS.................................................................................................................................. 906.2 CTS Traces................................................................................................................................................................................92
7 Quota Adjustment.................................................................................................................93
A Change History...................................................................................................................... 95
Domain Name ServiceUser Guide Contents
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. iii
1 Public Zone
1.1 OverviewA public zone provides information to translate a domain name and itssubdomains into IP addresses required for network communications on theInternet. Visitors can access your website by entering a domain name in theaddress box of a browser. HUAWEI CLOUD DNS provides public domain namesresolution. To resolve public domain names, you must host the registered domainnames on the DNS service.
This chapter describes how to create and manage public zones.
Table 1-1 Public zone operations
Operation Scenario Remarks
Creating aPublic Zone
Create a zone for yourdomain name.
● Public zones are globalresources. You do not need toset a region or project.
● Each user can add a maximumof 50 public zones.
● The domain name can be asecond-level domain name orone of its subdomain, forexample, abc.example.com.
ManagingPublicZones
Modify, delete, enable,disable, and view publiczones.
● Once a public zone is created,its name cannot be modified.
● After a public zone is deleted,all its record sets will also bedeleted.
● After a public zone is disabled,all record sets in the zone willno longer be resolved.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 1
Operation Scenario Remarks
Regaining aDomainName
When the error message"The zone has already beencreated by another user" isdisplayed during the publiczone creation.
● The domain name has beenregistered with a third partyregistrar.
● Only the domain name ownercan regain the domain name.
1.2 Creating a Public Zone
ScenariosCreate a public zone on the DNS console to resolve your domain name.
PrerequisitesYou have registered a domain name.
ProcedureIf your domain name is registered with a third-party registrar, create a public zoneand add record sets to it on the DNS console.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.4. Click Create Public Zone.5. Set the parameters.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 2
Figure 1-1 Creating a public zone
Table 1-2 describes the parameters.
Table 1-2 Parameters for creating a public zone
Parameter Description Example Value
Name Name of the public zone, which isthe domain name you registeredThe domain name can be a second-level domain name or one of itssubdomain, for example,abc.example.com.
example.com
Email (Optional) Email address of theadministrator managing the publiczoneIt is recommended that you set theemail address toHOSTMASTER@Domain name.For more information about theemail address, see Why Is the EmailAddress Format Changed in theSOA Record?
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 3
Parameter Description Example Value
Tag (Optional) Identifier of a resourceEach tag contains a key and a value.You can add a maximum of 10 tagsto a zone.For details about tag key and valuerequirements, see Table 1-3.
example_key1example_value1
Description (Optional) Supplementaryinformation about the zoneYou can enter a maximum of 255characters.
This is a zoneexample.
Table 1-3 Tag key and value requirements
Parameter Requirements Example Value
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36
characters.● Cannot start or end with a space
or contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43
characters.● Cannot start or end with a space
or contain special characters =*<>\,|/
example_value1
6. Click OK.
View the created public zone on the Public Zones page.If the system displays a message indicating that the public zone has alreadybeen created by another user, handle the issue by referring to Regaining aDomain Name.
7. Click the zone name or click Add Record Set under Operation.On the Record Sets page, click Add Record Set. For detailed operations, seeOverview.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 4
NO TE
Click the zone name to view detailed zone information. You can view SOA and NSrecord 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 zone.
You can modify the NS record set based on the region of the domain name. Formore information about DNS server addresses, see What Are HUAWEI CLOUDDNS Servers?
Follow-up OperationsAfter a public zone is created, you can perform the following operations:
● Add record sets for it. For details, see Overview.● Modify or delete it, or view its details. For details, see Managing Public
Zones.
1.3 Managing Public Zones
ScenariosYou can view details of a public zone, enable or disable a public zone, modify apublic zone, or delete a public zone.
Modifying a Public ZoneChange the email address of the domain name administrator and description ofthe public zone.
NO TE
For more information about the email address, see Why Is the Email Address FormatChanged in the SOA Record?
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.
4. Locate the public zone you want to modify and click Modify underOperation.The Modify Public Zone dialog box is displayed.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 5
Figure 1-2 Modifying a public zone
5. Change the email address or description of the zone as required.6. Click OK.
Deleting a Public ZoneDelete a public zone when you no longer need it. After a public zone is deleted,the domain name and its subdomains cannot be resolved by the DNS service.
NO TICE
Before you delete a public zone, back up all record sets in the public zone.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.4. Locate the public zone you want to delete and click Delete under Operation.
The Delete Public Zone dialog box is displayed.
Figure 1-3 Deleting a public zone
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 6
5. Click Yes.
Batch Deleting Public ZonesDelete multiple public zones at a time. After the public zones are deleted, domainnames and their subdomains cannot be resolved by the DNS service.
NO TICE
Before you delete public zones, back up all record sets in the public zones.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.
4. Select the public zones you want to delete and click Delete.
Figure 1-4 Deleting public zones
5. In the Delete Public Zone dialog box, click Yes.
Figure 1-5 Delete Public Zone
Disabling or Enabling a Public ZoneDisable a public zone to stop all record sets in the public zone. When you want torestore the resolution of the domain name, enable the public zone.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 7
3. In the navigation pane, choose Public Zones.The Public Zones page is displayed.
4. Select the public zone you want to disable or enable and choose More >Disable or Enable under Operation.The Disable Public Zone or Enable Public Zone dialog box is displayed.
5. Click OK.
Viewing Details About a Public ZoneView details about a public zone, such as zone ID, operation time, tag, and TTL, onthe Public Zones page.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. On the Dashboard page, click Public Zones under My Resources.
4. Locate the public zone you want to view and click before the zone nameto view its details.
Figure 1-6 Public zone details
1.4 Regaining a Domain Name
ScenariosWhen a public zone is created, the DNS service does not verify the ownership ofthe domain name. Therefore, any user can host their domain names on the DNSservice. When you create a public zone for your domain name, the system maydisplay a message indicating that the zone has already been created by anotheruser. In this case, regain the domain name before configuring the public zone.
For example, you have registered a domain name example.com and want to hostit on the DNS service, but another user has created a zone named example.com.To solve this problem, regain the domain name by performing the operationsdescribed below.
Prerequisites● You have registered the domain name with a domain name registrar.● You are the owner of the domain name.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 8
● The domain name can be resolved.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.
4. Click Create Public Zone.5. Set Name to your domain name, set the other parameters, and click OK.
If the zone has already been created by another user, the system displays amessage.
6. Click Regain domain name.
Figure 1-7 Regain domain name
The Regain Domain Name dialog box is displayed and provides the TXTrecord used to verify the domain name owner.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 9
Figure 1-8 Regaining a domain name
7. Add the TXT record for your domain name in the current DNS serviceprovider's system.For example, if the current DNS service provider is Alibaba Cloud, perform thefollowing operations to add the preceding TXT record to the domain name:
NO TE
The operations here are for reference only. For details, see the documentation providedby the DNS service provider.
a. Log in to Alibaba Cloud.b. Click Console in the upper right corner of the page.c. Choose Products > Domains & Websites > Alibaba Cloud DNS.
The Alibaba Cloud DNS console is displayed.d. In the domain name list, click the domain name.
The Record Sets page is displayed.e. Click Add Record.
▪ Type: Select TXT-Text.
▪ Host: Enter huaweiyunRetrieval.
▪ Value: Enter 4924e0ee8e914f0f8e99ac9052565627.
f. Click OK.In the record list, if Status is Normal, the TXT record has been added andtaken effect.
8. Go back to the dialog box shown in 6 and click Verify.The DNS service will check the TXT record. If the verification is successful, thepublic zone will be created for your domain name.
Domain Name ServiceUser Guide 1 Public Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 10
2 Private Zone
2.1 OverviewPrivate zones provide configurations for private domain names that are onlyapplicable within VPCs, and they map private domain names to private IPaddresses and resolve domain names within VPCs.
● You can create any domain names without registering them.
● One private zone can be associated with multiple VPCs, and domain namesare valid only in VPCs.
To use private domain names, you must first create a private zone and associateVPCs with it.
This chapter describes how to create and manage private zones.
Table 2-1 Private zone operations
Operation Description Constraint
Creating aPrivateZone
Create a zone foryour domain name.
● Private zones are project-levelresources. When you create a privatezone, select a region and project.
● Each account can create a maximum of50 private zones.
● Private domain names must meet thefollowing requirements:– Domain name labels are separated
by dot (.), and each label does notexceed 63 characters.
– A domain name label can containletters, digits, and hyphens (-) andcannot start or end with a hyphen.
– The total length of a domain namecannot exceed 254 characters.
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 11
Operation Description Constraint
ManagingPrivateZones
Modify, delete, andquery private zones.
● The name of a private zone cannot bemodified after the zone is created.
● After a private zone is deleted, all itsrecord sets will also be deleted.
Associatinga VPC witha PrivateZone
Configure privatedomain names forVPCs.
● You can only associate VPCs that youhave created using your own account.
● Each VPC can be associated only withone private zone. However, a privatezone can have more than one VPCassociated with it.
Disassociating a VPCfrom aPrivateZone
Disassociate a VPCfrom a privatezone.
● After the disassociation, private domainnames will not take effect in the VPC.
● If a private zone is only associated withone VPC, you cannot disassociate it.
2.2 Creating a Private Zone
ScenariosCreate a private zone to resolve a private domain name within VPCs.
Prerequisites● You have created a VPC.● You have created an ECS in the VPC and planned a domain name
(example.com) planned for the ECS.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Private Zones.
The Private Zones page is displayed.
4. Click in the upper left corner and select the desired region and project.5. Click Create Private Zone.6. Set the required parameters.
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 12
Figure 2-1 Creating a private zone
Table 2-2 describes the parameters.
Table 2-2 Parameters for creating a private zone
Parameter Description Example Value
Name Name of the private zone, which isthe private domain name you haveplanned for the ECSYou can enter a top-level domainthat complies with the domainnaming rules.
example.com
VPC VPC to be associated with the privatezoneNOTE
This VPC must be the same as the VPCwhere the servers are deployed.Otherwise, the domain name cannot beresolved.
-
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 13
Parameter Description Example Value
Email (Optional) Email address of theadministrator managing the privatezoneIt is recommended that you set theemail address toHOSTMASTER@Domain name.For more information about theemail address, see Why Is the EmailAddress Format Changed in theSOA Record?
Tag (Optional) Identifier of a resourceEach tag contains a key and a value.You can add a maximum of 10 tagsto a zone.For details about tag key and valuerequirements, see Table 2-3.
example_key1example_value1
Description (Optional) Supplementaryinformation about the zoneYou can enter a maximum of 255characters.
This is a zoneexample.
Table 2-3 Tag key and value requirements
Parameter Requirements Example Value
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36
characters.● Cannot start or end with a space
or contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43
characters.● Cannot start or end with a space
or contain special characters =*<>\,|/
example_value1
7. Click OK.
8. Switch back to the Private Zones page.
View the created private zone in the zone list.
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 14
9. Click the zone name to add a record set.
On the Record Sets page, click Add Record Set. For detailed operations, seeOverview.
NO TE
Click the zone name to view detailed zone information. You can view SOA and NSrecord sets created by the system.
● The SOA record set defines the DNS server that is the authoritative informationsource for a particular domain name.
● The NS record set defines authoritative DNS servers for a domain name.
Follow-up Operations
After a private zone is created, you can perform the following operations:
● Add record sets for it. For details, see Overview.
● Modify or delete it, or view its details. For details, see Managing PrivateZones.
2.3 Managing Private Zones
Scenarios
You can view details of a private zone, modify a private zone, or delete a privatezone.
Modifying a Private Zone
Change the email address of the domain name administrator and description ofthe private zone.
NO TE
For more information about the email address, see Why Is the Email Address FormatChanged in the SOA Record?
1. Log in to the management console.
2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Private Zones.
The Private Zones page is displayed.
4. Click in the upper left corner and select the desired region and project.
5. Locate the private zone you want to modify and click Modify underOperation.
The Modify Private Zone dialog box is displayed.
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 15
Figure 2-2 Modifying a private zone
6. Change the email address or description of the zone as required.7. Click OK.
Deleting a Private ZoneDelete a private zone when you no longer need it. After a private zone is deleted,the domain name and its subdomains cannot be resolved by the DNS service.
NO TICE
Before you delete a private zone, back up all record sets in the private zone.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Private Zones.
The Private Zones page is displayed.
4. Click in the upper left corner and select the desired region and project.
5. Locate the private zone you want to delete and click Delete under Operation.The Delete Private Zone dialog box is displayed.
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 16
Figure 2-3 Deleting a private zone
6. Click Yes.
Batch Deleting Private ZonesDelete multiple private zones at a time. After the private zones are deleted,domain names and their subdomains cannot be resolved by the DNS service.
NO TICE
Before you delete private zones, back up all record sets in the private zones.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Private Zones.
The Private Zones page is displayed.
4. Click in the upper left corner and select the desired region and project.5. Select the private zones you want to delete and click Delete.
Figure 2-4 Deleting private zones
6. In the Delete Private Zone dialog box, click Yes.
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 17
Figure 2-5 Delete Private Zone
Viewing Details About a Private Zone
View details about a private zone, such as zone ID, operation time, tag, and TTL,on the Private Zones page.
1. Log in to the management console.
2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. On the Dashboard page, click Private Zones under My Resources.
4. Click in the upper left corner and select the desired region and project.
5. Locate the private zone you want to view and click before the zonename to view its details.
Figure 2-6 Private zone details
2.4 Associating a VPC with a Private Zone
Scenarios
Associate a VPC with a private zone so that the private domain name can work inthis VPC.
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 18
NO TE
This VPC must be the same as the VPC where the servers are deployed. Otherwise, thedomain name cannot be resolved.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Private Zones.
The Private Zones page is displayed.
4. Click in the upper left corner and select the desired region and project.
5. Locate the private zone with which you want to associate the VPC and clickAssociate VPC under Operation.
Figure 2-7 Associate VPC
6. Select the VPC you want to associate.If no VPCs are available, create one on the VPC console and then associatethe private zone with it.
Figure 2-8 Associating a VPC
7. Click OK.The VPC is displayed under Associated VPC.
Figure 2-9 Associated VPC
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 19
2.5 Disassociating a VPC from a Private Zone
Scenarios
Disassociate a VPC from a private zone if you do not want to the private domainname to work in this VPC. If a private zone has only one VPC associated, youcannot disassociate the VPC.
NO TE
If you do not intend to use private domain names, delete the private zone.
Procedure1. Log in to the management console.
2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Private Zones.
The Private Zones page is displayed.
4. Click in the upper left corner and select the desired region and project.
5. Locate the private zone from which a VPC is to be disassociated, select the
VPC to be disassociated under Associated VPC, and click on the right ofthe VPC.
Figure 2-10 Associated VPC
6. In the Disassociate VPC dialog box, click Yes.
Figure 2-11 Disassociating a VPC
Domain Name ServiceUser Guide 2 Private Zone
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 20
3 Record Set
3.1 OverviewA record set is a collection of resource records that belong to the same domainname. A record set defines DNS record types and values.
Table 3-1 Record set management
Operation Scenario Constraint
Record SetTypes andConfiguration Rules
View record set typessupported by the DNSservice and theirconfiguration rules.
None
AddingRecord Sets
Add record sets to a domainname.For details, see Table 3-2.
● After a zone is created for adomain name, the systemautomatically creates the SOAand NS record sets.
● A maximum of 500 record setscan be added in an account.
ManagingRecord Sets
Modify, delete, and viewrecord sets.
● After a record set is added, itsresolution line cannot bemodified.
● You cannot modify, delete, ordisable SOA and NS record setsautomatically created by thesystem.
Creating aWildcardDNS RecordSet
Add a record set thatmatches all subdomains.
Wildcard DNS resolution does notsupport NS record sets.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 21
Operation Scenario Constraint
Searchingfor RecordSetsGlobally
Search for, modify, disable,and delete record sets onthe Dashboard > RecordSet page.
None
ImportingRecord Sets
Import record sets inbatches.
● Record sets are listed in .xlsxfiles, and each file cannotexceed 2 MB.
● A maximum of 500 record setscan be imported at a time.
ExportingRecord Sets
Export record sets inbatches.
None
Migrating aDomainName
Migrate an in-use domainname to HUAWEI CLOUD.
● Before the migration, obtain allrecord sets from your currentDNS service provider.
● After the migration, change theDNS server addresses of thedomain name to the addressesprovided by HUAWEI CLOUDDNS in the domain nameregistrar's system.
Figure 3-1 shows the process for configuring a record set on the DNS console.
Figure 3-1 Process for configuring a record set
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 22
NO TE
Either a public or private zone can be created. For details, see the following:● Creating a Public Zone● Creating a Private Zone
3.2 Record Set Types and Configuration Rules
TypeTable 3-2 describes the record set types.
Table 3-2 Record set types
Record SetType
Scenario Description
A Public and privatezones
Maps domains to IPv4 addresses.
CNAME Public and privatezones
Maps one domain name to another ormultiple domain names to one domainname.
MX Public and privatezones
Maps domain names to email servers.
AAAA Public and privatezones
Maps domain names to IPv6 addresses.
TXT Public and privatezones
Specifies text records. It is usually usedin the following scenarios:● To record DKIM public keys to
prevent email fraud.● To record the identity of domain
name owners to facilitate domainname retrieval.
SRV Public and privatezones
Records servers providing specificservices.
NS Public and privatezones
Delegates subdomains to other nameservers.● For public zones, an NS record set is
automatically created, and you canadd NS records for subdomains.
● For private zones, an NS record set isautomatically created, and youcannot add other NS record sets.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 23
Record SetType
Scenario Description
SOA Public and privatezones
Specifies the master authoritative DNSserver for a domain name. The SOArecord set is created by the system andcannot be added manually.
CAA Public zone Grants certificate issuing permissions toCAs. CAA record sets can be used toprevent the issuance of unauthorizedHTTPS certificates.
PTR Private zone Maps IP addresses to domain names.
Record Set ConfigurationTable 3-3 lists the value requirements for different types of record sets.
Table 3-3 Requirements for record set values
RecordSet Type
Value Example
A IPv4 addresses mapped to the domainnameYou can enter a maximum of 50 recordvalues, each on a separate line.
192.168.12.2192.168.12.3
CNAME Domain name alias. You can enter onlyone domain name.
www.example.com
MX Email server addressYou can enter a maximum of 50 recordvalues, each on a separate line.The format is [priority][mail server hostname].Configuration rules:● priority: priority for an email server to
receive emails. A smaller value indicatesa higher priority.
● mail server host name: domain nameprovided by the email service provider
10mailserver.example.com.20mailserver2.example.com.
AAAA IPv6 addresses mapped to the domainnameYou can enter a maximum of 50 recordvalues, each on a separate line.
ff03:0db8:85a3:0:0:8a2e:0370:7334
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 24
RecordSet Type
Value Example
TXT Text contentConfiguration rules:● Text record values must be enclosed in
double quotation marks.● One or more text record values are
supported, each on a separate line.A maximum of 50 text record valuescan be entered.
● A single text record value can containmultiple character strings, each ofwhich is double quoted and separatedfrom others using a space.One character string cannot exceed 255characters.A value must not exceed 4096characters.
● The value cannot be left blank.● The text cannot contain a backslash (\).
● Single text record:"aaa"
● Multiple textrecords:"bbb""ccc"
● A text record thatcontains multiplestrings:"ddd" "eee" "fff"
● Text record in SPFformat:"v=spf1 a mx -all"This value indicatesthat only IPaddresses in the Aand MX record setsare allowed tosend emails usingthis domain name.
SRV Server addressYou can enter a maximum of 50 recordvalues, each on a separate line.The value format is [priority] [weight][port number] [server address].Configuration rules:● The priority, weight, and port number
range from 0 to 65535.● A smaller priority value indicates a
higher priority.● A larger weight value indicates a larger
weight.● The server address is the domain name
of the target server.Ensure that the domain name can beresolved.
NOTEThe system checks the priority values first. If thepriority values are the same, the system willcheck the weight values.
2 1 2355example_server.test.com
NS DNS server addressYou can enter a maximum of 50 recordvalues, each on a separate line.
ns1.example.netns2.example.net
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 25
RecordSet Type
Value Example
CAA CA to be authorized to issue certificates fora domain name or its subdomainsYou can enter a maximum of 50 recordvalues, each on a separate line.The format is [flag] [tag] [value].Configuration rules:● flag: certificate authority (CA)
identifier, which is an unsignedcharacter ranging from 0 to 255.Usually, the value is set to 0.
● tag: a string of 1 to 15 characterscomposed of letters and digits from 0 to9. The tag can be one of the following:– issue: authorizes CAs to issue all
types of certificates.– issuewild: authorizes CAs to issue
wildcard certificates.– iodef: requests notifications once
CAs receive invalid certificaterequests.
● value: authorized CA or emailaddress/URL required for notificationonce the CA receives invalid certificaterequests, depending on the value oftag. The value must be enclosed inquotation marks (""). It is a string of 1to 255 characters, including letters,digits, spaces, and special characters -#*?&_~=:;.@+^/!%
0 issue "ca.abc.com"0 issuewild"ca.def.com"0 iodef"mailto:[email protected]"0 iodef "http://domain.com/log/"
PTR Private domain name mapped to theprivate IP address. You can enter only onedomain name.
www.example.com.
3.3 Adding Record Sets
3.3.1 Adding an A Record Set
Scenarios
If you want to use a domain name to access websites, web applications, or cloudservers configured with IPv4 addresses, you can add an A record set for thedomain name.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 26
For more information about the types of record sets, see Record Set Types andConfiguration Rules.
PrerequisitesYou have a web server and obtained an IPv4 address.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.6. Click Add Record Set.
The Add Record Set dialog box is displayed.7. Set required parameters based on Table 3-4.
Table 3-4 Parameters for adding an A record set
Parameter
Description ExampleValue
Name Prefix of the domain name to be resolvedFor example, if the zone name isexample.com, the domain name prefix can beas follows:● www: The domain name is
www.example.com, which is usually usedfor a website.
● Left blank: The domain name isexample.com.
● abc: The domain name is abc.example.com,a subdomain of example.com.
● mail: The domain name ismail.example.com, which is typically usedfor an email server.
● *: The domain name is *.example.com,which is a wildcard domain name,indicating all subdomains of example.com.
www
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 27
Parameter
Description ExampleValue
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing record set.For details, see Why Does the System PromptMe that My Record Set Is in Conflict with anExisting One?
A – Mapdomains toIPv4addresses
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result based onvisitors' carrier networks. For details, seeConfiguring ISP Lines for Record Sets.
● Region: returns the resolution result basedon visitors' geographical locations. Fordetails, see Configuring Region Lines forRecord Sets.
Default
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently, setTTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value IPv4 addresses mapped to the domain nameYou can enter a maximum of 50 record values,each on a separate line.
192.168.12.2192.168.12.3
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the default valueis 1.This parameter is supported only for publicdomain names.If a resolution line in a zone contains multiplerecord sets of the same type, you can setdifferent weights to each record set. Fordetails, see Configuring WeightedResolution.
1
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 28
Parameter
Description ExampleValue
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-5.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
N/A
Table 3-5 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.9. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
Related OperationsFor more information about how to configure A record sets, see ConfiguringWebsite Resolution (Registering a Domain Name with a Third-Party DomainName Registrar).
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 29
3.3.2 Adding an AAAA Record Set
ScenariosIf you want to use a domain name to access websites, web applications, or cloudservers configured with IPv6 addresses, you can add an AAAA record set for thedomain name.
For more details, see Record Set Types and Configuration Rules.
PrerequisitesYou have a web server and obtained an IPv6 address.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.6. Click Add Record Set.
The Add Record Set dialog box is displayed.7. Set required parameters based on Table 3-6.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 30
Table 3-6 Parameters for adding an AAAA record set
Parameter Description ExampleValue
Name Prefix of the domain name to be resolvedFor example, if the zone name isexample.com, the domain name prefix canbe as follows:● www: The domain name is
www.example.com, which is usually usedfor a website.
● Left blank: The domain name isexample.com.
● abc: The domain name isabc.example.com, a subdomain ofexample.com.
● mail: The domain name ismail.example.com, which is typically usedfor an email server.
● *: The domain name is *.example.com,which is a wildcard domain name,indicating all subdomains ofexample.com.
www
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing recordset.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
AAAA – Mapdomains toIPv6addresses
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 31
Parameter Description ExampleValue
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result basedon visitors' carrier networks. For details,see Configuring ISP Lines for RecordSets.
● Region: returns the resolution resultbased on visitors' geographical locations.For details, see Configuring RegionLines for Record Sets.
Default
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647,and the default is 300.If your service address changes frequently,set TTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value IPv6 addresses mapped to the domain nameYou can enter a maximum of 50 recordvalues, each on a separate line.
ff03:0db8:85a3:0:0:8a2e:0370:7334
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the defaultvalue is 1.This parameter is supported only for publicdomain names.If a resolution line in a zone containsmultiple record sets of the same type, youcan set different weights to each record set.For details, see Configuring WeightedResolution.
1
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 32
Parameter Description ExampleValue
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. Youcan add a maximum of 10 tags to a recordset. This parameter is displayed when youenable Other Settings.For details about tag key and valuerequirements, see Table 3-7.
example_key1example_value1
Description (Optional) Supplementary informationabout the record set. This parameter isdisplayed when you enable Other Settings.You can enter a maximum of 255 characters.
-
Table 3-7 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.9. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
3.3.3 Adding an NS Record Set
ScenariosIf you want to specify authoritative DNS servers for a domain name, you can addNS record sets.
For more details, see Record Set Types and Configuration Rules.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 33
Constraints● You can create NS record sets only in public zones.● After a public zone is created, the system automatically adds an NS record set
for the domain name. This NS record set cannot be modified or deleted.Therefore, you can add NS record sets only in the following scenarios:– The Name parameter is not left blank. This means that you can add NS
record sets for subdomains of a domain name.– The value of the Line parameter is not set to Default. This means that
you can add NS record sets for the domain name with other resolutionlines.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones.The Public Zones page is displayed.
4. Click the zone name.5. Click Add Record Set.
The Add Record Set dialog box is displayed.
6. Set required parameters based on Table 3-8.
Table 3-8 Parameters for adding an NS record set
Parameter
Description ExampleValue
Name Prefix of the domain name to be resolvedFor example, if the zone name isexample.com, the domain name prefix canbe as follows:● www: The domain name is
www.example.com, which is usually usedfor a website.
● Left blank: The domain name isexample.com.
● abc: The domain name isabc.example.com, a subdomain ofexample.com.
● mail: The domain name ismail.example.com, which is typically usedfor an email server.
● *: The domain name is *.example.com,which is a wildcard domain name,indicating all subdomains of example.com.
abc
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 34
Parameter
Description ExampleValue
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing recordset.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
NS – Delegatesubdomains toother nameservers
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result based onvisitors' carrier networks. For details, seeConfiguring ISP Lines for Record Sets.
● Region: returns the resolution result basedon visitors' geographical locations. Fordetails, see Configuring Region Lines forRecord Sets.
Default
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently, setTTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value DNS server addressYou can enter a maximum of 50 recordvalues, each on a separate line.
ns1.example.netns2.example.net
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 35
Parameter
Description ExampleValue
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the default valueis 1.This parameter is supported only for publicdomain names.If a resolution line in a zone contains multiplerecord sets of the same type, you can setdifferent weights to each record set. Fordetails, see Configuring WeightedResolution.
1
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-9.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
-
Table 3-9 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
7. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 36
3.3.4 Adding a CNAME Record Set
ScenariosIf you want to map one domain name to another, add a CNAME record sets forthe domain name.
For more details, see Record Set Types and Configuration Rules.
Constraints● You can leave the Name parameter blank when adding a CNAME record set.● You cannot create a CNAME record set with the same name and resolution
line as an NS record set.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.6. Click Add Record Set.
The Add Record Set dialog box is displayed.
7. Set required parameters based on Table 3-10.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 37
Table 3-10 Parameters for adding a CNAME record set
Parameter Description ExampleValue
Name Prefix of the domain name to be resolvedFor example, if the zone name isexample.com, the domain name prefix canbe as follows:● www: The domain name is
www.example.com, which is usually usedfor a website.
● Left blank: The domain name isexample.com.
● abc: The domain name isabc.example.com, a subdomain ofexample.com.
● mail: The domain name ismail.example.com, which is typically usedfor an email server.
● *: The domain name is *.example.com,which is a wildcard domain name,indicating all subdomains of example.com.
Left blank
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing recordset.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
CNAME – Mapone domain toanother
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result based onvisitors' carrier networks. For details, seeConfiguring ISP Lines for Record Sets.
● Region: returns the resolution resultbased on visitors' geographical locations.For details, see Configuring Region Linesfor Record Sets.
Default
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 38
Parameter Description ExampleValue
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently,set TTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value Domain name alias. You can enter only onedomain name.
webserver01.example.com
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the default valueis 1.This parameter is supported only for publicdomain names.If a resolution line in a zone containsmultiple record sets of the same type, youcan set different weights to each record set.For details, see Configuring WeightedResolution.
1
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-11.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
-
Table 3-11 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 39
Parameter
Requirements ExampleValue
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.9. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
3.3.5 Adding an MX Record Set
ScenariosIf you want to specify email servers mapped a domain name, you can add MXrecord sets.
For details about other types of record sets, see Record Set Types andConfiguration Rules.
PrerequisitesYou have deployed an email server and obtained its domain name.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.6. Click Add Record Set.
The Add Record Set dialog box is displayed.
7. Set required parameters based on Table 3-12.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 40
Table 3-12 Parameters for adding an MX record set
Parameter
Description ExampleValue
Name Prefix of the domain name to be resolvedFor example, if the zone name isexample.com, the domain name prefix canbe as follows:● www: The domain name is
www.example.com, which is usually usedfor a website.
● Left blank: The domain name isexample.com.
● abc: The domain name isabc.example.com, a subdomain ofexample.com.
● mail: The domain name ismail.example.com, which is typically usedfor an email server.
● *: The domain name is *.example.com,which is a wildcard domain name,indicating all subdomains of example.com.
Left blank
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing record set.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
MX – Mapdomains toemail servers
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result based onvisitors' carrier networks. For details, seeConfiguring ISP Lines for Record Sets.
● Region: returns the resolution result basedon visitors' geographical locations. Fordetails, see Configuring Region Lines forRecord Sets.
Default
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 41
Parameter
Description ExampleValue
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently, setTTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value Email server addressYou can enter a maximum of 50 recordvalues, each on a separate line.The format is [priority][mail server hostname].Configuration rules:● priority: priority for an email server to
receive emails. A smaller value indicates ahigher priority.
● mail server host name: domain nameprovided by the email service provider
10mailserver.example.com
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the default valueis 1.This parameter is supported only for publicdomain names.If a resolution line in a zone contains multiplerecord sets of the same type, you can setdifferent weights to each record set. Fordetails, see Configuring WeightedResolution.
1
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-13.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
Thedescription ofthe hostname.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 42
Table 3-13 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.9. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
3.3.6 Adding a TXT Record Set
Scenarios
A TXT record set provides description for a domain name. It is usually used in thefollowing scenarios:
● To record DKIM public keys to prevent email fraud.● To record the identity of domain name owners to facilitate domain name
retrieval.
For details about other record set types, see Record Set Types and ConfigurationRules.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.6. Click Add Record Set.
The Add Record Set dialog box is displayed.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 43
7. Set required parameters based on Table 3-14.
Table 3-14 Parameters for adding a TXT record set
Parameter Description ExampleValue
Name Prefix of the domain name to be resolvedFor example, if the zone name isexample.com, the domain name prefix canbe as follows:● www: The domain name is
www.example.com, which is usually usedfor a website.
● Left blank: The domain name isexample.com.
● abc: The domain name isabc.example.com, a subdomain ofexample.com.
● mail: The domain name ismail.example.com, which is typically usedfor an email server.
● *: The domain name is *.example.com,which is a wildcard domain name,indicating all subdomains of example.com.
Left blank
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing recordset.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
TXT – Specifytext records
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 44
Parameter Description ExampleValue
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result based onvisitors' carrier networks. For details, seeConfiguring ISP Lines for Record Sets.
● Region: returns the resolution resultbased on visitors' geographical locations.For details, see Configuring Region Linesfor Record Sets.
Default
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently,set TTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 45
Parameter Description ExampleValue
Value Text contentConfiguration rules:● Text record values must be enclosed in
double quotation marks.● One or more text record values are
supported, each on a separate line.A maximum of 50 text record values canbe entered.
● A single text record value can containmultiple character strings, each of whichis double quoted and separated fromothers using a space.One character string cannot exceed 255characters.A value must not exceed 4096 characters.
● The value cannot be left blank.● The text cannot contain a backslash (\).
● Single textrecord:"aaa"
● Multipletextrecords:"bbb""ccc"
● A textrecord thatcontainsmultiplestrings:"ddd" "eee""fff"
● Text recordin SPFformat:"v=spf1 amx -all"This valueindicatesthat only IPaddressesin the Aand MXrecord setsare allowedto sendemailsusing thisdomainname.
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the default valueis 1.This parameter is supported only for publicdomain names.If a resolution line in a zone containsmultiple record sets of the same type, youcan set different weights to each record set.For details, see Configuring WeightedResolution.
1
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 46
Parameter Description ExampleValue
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-15.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
-
Table 3-15 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.9. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
Related Operations
For more information about TXT record sets, see Regaining a Domain Name.
3.3.7 Adding an SRV Record Set
Scenarios
To record services provided by a server, you can add SRV record sets for a domainname.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 47
For details about other record set types, see Record Set Types and ConfigurationRules.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.6. Click Add Record Set.
The Add Record Set dialog box is displayed.
7. Set required parameters based on Table 3-16.
Table 3-16 Parameters for adding an SRV record set
Parameter
Description ExampleValue
Name Service (for example, FTP, SSH, or SIP)provided over the specified protocol (forexample, TCP or UDP) on a hostThe format is _Service name._Protocol.
_ftp._tcp_ftp._tcpindicates thatthe hostprovides theFTP serviceover TCP.
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing record set.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
SRV – Recordserversprovidingspecificservices
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 48
Parameter
Description ExampleValue
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result based onvisitors' carrier networks. For details, seeConfiguring ISP Lines for Record Sets.
● Region: returns the resolution result basedon visitors' geographical locations. Fordetails, see Configuring Region Lines forRecord Sets.
Default
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently, setTTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value Server addressYou can enter a maximum of 50 recordvalues, each on a separate line.The value format is [priority] [weight] [portnumber] [server address].Configuration rules:● The priority, weight, and port number
range from 0 to 65535.● A smaller priority value indicates a higher
priority.● A larger weight value indicates a larger
weight.● The server address is the domain name of
the target server.Ensure that the domain name can beresolved.
NOTEThe system checks the priority values first. If thepriority values are the same, the system will checkthe weight values.
2 1 2355example_server.test.com
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 49
Parameter
Description ExampleValue
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the default valueis 1.This parameter is supported only for publicdomain names.If a resolution line in a zone contains multiplerecord sets of the same type, you can setdifferent weights to each record set. Fordetails, see Configuring WeightedResolution.
1
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-17.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
-
Table 3-17 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.
9. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 50
3.3.8 Adding a CAA Record Set
ScenariosIf you want to specify CAs authorized to issue HTTPS certificates for your domainname, add CAA record sets for the domain name.
CAA record sets are used to prevent HTTPS certificates from being incorrectlyissued.
For details about other record set types, see Record Set Types and ConfigurationRules.
ConstraintsCAA record sets can be added only to public zones.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones.The Public Zones page is displayed.
4. Click the zone name.5. Click Add Record Set.
The Add Record Set dialog box is displayed.
6. Set required parameters based on Table 3-18.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 51
Table 3-18 Parameters for adding a CAA record set
Parameter
Description ExampleValue
Name Prefix of the domain name to be resolvedFor example, if the zone name isexample.com, the domain name prefix canbe as follows:● www: The domain name is
www.example.com, which is usually usedfor a website.
● Left blank: The domain name isexample.com.
● abc: The domain name isabc.example.com, a subdomain ofexample.com.
● mail: The domain name ismail.example.com, which is typically usedfor an email server.
● *: The domain name is *.example.com,which is a wildcard domain name,indicating all subdomains of example.com.
Left blank
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing record set.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
CAA – Grantcertificateissuingpermissions toCAs
Line Resolution lineThe DNS server will return the IP address ofthe specified line, depending on where thevisitors come from.This parameter is supported only for publicdomain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result based onvisitors' carrier networks. For details, seeConfiguring ISP Lines for Record Sets.
● Region: returns the resolution result basedon visitors' geographical locations. Fordetails, see Configuring Region Lines forRecord Sets.
Default
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 52
Parameter
Description ExampleValue
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently, setTTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value CA to be authorized to issue certificates for adomain name or its subdomainsYou can enter a maximum of 50 recordvalues, each on a separate line.The format is [flag] [tag] [value].Configuration rules:● flag: certificate authority (CA) identifier,
which is an unsigned character rangingfrom 0 to 255. Usually, the value is set to0.
● tag: a string of 1 to 15 characterscomposed of letters and digits from 0 to 9.The tag can be one of the following:– issue: authorizes CAs to issue all types
of certificates.– issuewild: authorizes CAs to issue
wildcard certificates.– iodef: requests notifications once CAs
receive invalid certificate requests.● value: authorized CA or email address/URL
required for notification once the CAreceives invalid certificate requests,depending on the value of tag. The valuemust be enclosed in quotation marks ("").It is a string of 1 to 255 characters,including letters, digits, spaces, and specialcharacters -#*?&_~=:;.@+^/!%
0 issue"ca.abc.com"0 issuewild"ca.def.com"0 iodef"mailto:[email protected]"0 iodef "http://domain.com/log/"
Weight (Optional) Weight of a record set. The valueranges from 0 to 1000, and the default valueis 1.This parameter is supported only for publicdomain names.If a resolution line in a zone contains multiplerecord sets of the same type, you can setdifferent weights to each record set. Fordetails, see Configuring WeightedResolution.
1
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 53
Parameter
Description ExampleValue
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-19.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
-
Table 3-19 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
7. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
Related Operations
For more information about CAA record sets, see Setting CAA Records to PreventUnauthorized HTTPS Certificate Issuing.
3.3.9 Adding a PTR Record
Scenarios
You can create PTR records to map private IP addresses to private domain names.
For details about other record set types, see Overview.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 54
Constraints● You can create PTR records only in private zones.● PTR records take effect only in a private zone whose domain name suffix is
in-addr.arpa.For details about how to add a PTR record for a public domain name, seeCreating a PTR Record.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Private Zones.The Private Zones page is displayed.
4. Click in the upper left corner and select the desired region and project.5. Click the zone name.6. Click Add Record Set.
The Add Record Set dialog box is displayed.
7. Set required parameters based on Table 3-20.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 55
Table 3-20 Parameters for adding a PTR record
Parameter
Description ExampleValue
Name Name of the PTR record 10.1.168For example, ifthe IP addressis192.168.1.10,the domainname in thePTR record is10.1.168.192.in-addr.arpa.● If the
privatezone nameis 192.in-addr.arpa,enter10.1.168 inthe box.
● If theprivatezone nameis1.168.192.in-addr.arpa,enter 10 inthe box.
Type Type of the record setIf a message is displayed indicating that therecord set you are trying to create exists, therecord set conflicts with an existing record set.For details, see Why Does the SystemPrompt Me that My Record Set Is inConflict with an Existing One?
PTR – Map IPaddresses todomains
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647, andthe default is 300.If your service address changes frequently, setTTL to a smaller value.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
Value Private domain name mapped to the privateIP address. You can enter only one domainname.
host.example.com.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 56
Parameter
Description ExampleValue
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. You canadd a maximum of 10 tags to a record set.This parameter is displayed when you enableOther Settings.For details about tag key and valuerequirements, see Table 3-21.
example_key1example_value1
Description
(Optional) Supplementary information aboutthe record set. This parameter is displayedwhen you enable Other Settings.You can enter a maximum of 255 characters.
-
Table 3-21 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.9. Switch back to the Record Sets page.
View the added record set in the record set list of the zone and ensure thatthe status of the record set is Normal.
Related OperationsFor more information, see How Can I Configure a PTR Record for an ECS PrivateIP Address?
3.4 Managing Record Sets
ScenariosYou can modify, delete, disable, or enable record sets, and view their details.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 57
Modifying a Record SetChange the TTL, value, and description of a record set to better address yourservice requirements.
NO TE
● You can only change the TTL, value, and description of an NS record set.● SOA record sets are automatically generated by the system and cannot be modified.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones or Private Zones.
The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.The Record Sets page is displayed.
6. Locate the record set you want to modify and click Modify under Operation.The Modify Record Set dialog box is displayed.
7. Modify the parameters.You can change only the TTL, value, and description of a record set.
8. Click OK.
Disabling or Enabling a Record SetThis operation applies only to record sets of public zones.
After a record set is disabled, it will not take effect in DNS queries but is stillavailable in the list.
NO TE
SOA and NS record sets are automatically generated by the system and cannot be enabledor disabled.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones.The Public Zones page is displayed.
4. Click the zone name.The Record Sets page is displayed.
5. Locate the record set you want to disable or enable and click Disable orEnable under Operation.The Disable Record Set or Enable Record Set dialog box is displayed.
6. Click Yes.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 58
Deleting a Record SetNO TE
SOA and NS record sets are automatically generated by the system and cannot be deleted.
Record sets that are no longer required can be deleted. After a record set isdeleted, it will become unavailable. For example, if an A record set is deleted, thedomain name cannot be resolved into the IPv4 address specified in the record set.If a CNAME record set is deleted, the domain alias cannot be mapped to thedomain name.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. On the Dashboard page, click Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.The Record Sets page is displayed.
6. Locate the record set you want to delete and click Delete under Operation.7. In the Delete Record Set dialog box, click Yes.
Deleting Record Sets in BatchesDelete multiple record sets at a time. Deleted record sets cannot be recovered, anddomain name queries will fail.
NO TE
SOA and NS record sets are automatically generated by the system and cannot be deleted.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones or Private Zones.
The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Select the record sets you want to delete and click Delete.
Figure 3-2 Deleting record sets in a batch
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 59
6. In the Delete Record Set dialog box, click Yes.
Figure 3-3 Delete Record Set
Viewing Details About a Record Set1. Log in to the management console.
2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.
The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the zone name.
The Record Sets page is displayed.
6. Locate the record set you want to view and click before its name.
3.5 Creating a Wildcard DNS Record Set
Scenarios
A wildcard DNS record set is used to match requests for all subdomains in a zone.You can add a record whose name is an asterisk (*) to resolve requests to allsubdomains of the domain name to the same value.
This section describes how to create a wildcard DNS record set.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 60
ConstraintsWildcard DNS resolution does not support NS record sets.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. Click the name of the zone to which you want to add a wildcard DNS recordset.
6. Click Add Record Set.7. Set the parameters based on Table 3-22.
Table 3-22 Parameters for adding a wildcard DNS record set
Parameter
Description Example Value
Name Public (or private) domain nameEnter an asterisk (*) as the leftmost labelof the domain name, for example,*.example.com.NOTE
Only the leftmost asterisk is considered as awildcard character. Other asterisks in thedomain name are common text characters.
*.abc
Type Record set typeWildcard DNS resolution does not supportNS record sets.
A – Map domainsto IPv4 addresses
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 61
Parameter
Description Example Value
Line The DNS server will return the IP addressof the specified line, depending on wherethe visitors come from.This parameter is supported only forpublic domain names.● Default: returns the default resolution
result irrespective of where the visitorscome from.
● ISP: returns the resolution result basedon visitors' carrier networks. For details,see Configuring ISP Lines for RecordSets.
● Region: returns the resolution resultbased on visitors' geographicallocations. For details, see ConfiguringRegion Lines for Record Sets.
Default
TTL (s) Cache duration of the record set on a localDNS server, in secondsThe value ranges from 1 to 2147483647,and the default is 300.If your service address changes frequently,set TTL to a smaller value.Learn more about TTL.
The default valueis 300, which is, 5minutes.
Value Record set value Take an A recordset for example,Value is set toIPv4 addressesmapped to thedomain name.Example:192.168.12.2192.168.12.3
Weight (Optional) Weight of a record set. Thevalue ranges from 0 to 1000, and thedefault value is 1.This parameter is supported only forpublic domain names.If a resolution line in a zone containsmultiple record sets of the same type, youcan set different weights to each recordset. For details, see ConfiguringWeighted Resolution.
1
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 62
Parameter
Description Example Value
Tag (Optional) Identifier of a resourceEach tag contains a key and a value. Youcan add a maximum of 10 tags to a recordset. This parameter is displayed when youenable Other Settings.For details about tag key and valuerequirements, see Table 3-23.
example_key1example_value1
Description
(Optional) Supplementary informationabout the record set. This parameter isdisplayed when you enable OtherSettings.You can enter a maximum of 255characters.
This is a wildcardDNS record set.
Table 3-23 Tag key and value requirements
Parameter
Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
8. Click OK.9. Switch back to the Record Sets page.
View the created wildcard DNS record set in the record set list of the domainname, and ensure that the status of the record set is Normal.Learn how to verify that a record set is working.
3.6 Searching for Record Sets Globally
Scenarios
The DNS service allows you to centrally manage record sets in both public andprivate zones.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 63
You can quickly search for record sets by its status, type, name, value, tag, or ID.
In the following operations, record sets of a private zone are used as an example.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. On the Dashboard page, click Record Sets.The record set list is displayed.
4. Click Private Zone Record Sets.5. Set search criteria to search for record sets.
The following search criteria are available:– Status: Search for record sets in a specified state.– Type: Search for record sets of a specified type.– Name: Search for record sets by domain name.– Value: Search for record sets based on their values.– ID: Search for record sets based on their IDs.– Search by Tag: Search for record sets based on preset tags.
6. Click before the domain name to view the record set details.7. Click Modify or Delete to perform desired record set operations.
3.7 Importing Record Sets
Scenarios
If you want to transfer your domain names from other cloud provider to the DNSservice for management, you can import existing record sets in batches. Bothpublic and private zones support the record import function.
You can import a maximum of 500 record sets at a time.
NO TE
Before importing record sets, you have created public or private zones on the DNS console.For details, see Creating a Public Zone or Creating a Private Zone.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones or Private Zones.
The zone list is displayed.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 64
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. In the public zone list, click the zone name example.com.
6. Choose Export and Import.
a. Click Download template.
b. List your record sets as required in the template.
NO TE
Ensure that the content is imported based on the format of the template.Otherwise, the import will fail.
7. Click Import Record Set and select the record set file to import.
After the import is complete, you can check whether record sets aresuccessfully imported or not.
– Succeeded Import: The number of successfully imported record sets aredisplayed.
– Failed Import: All failed record sets are listed. You can resolve theproblems based on the failure causes.
3.8 Exporting Record Sets
Scenarios
If you want to transfer your domain name from the DNS service to other cloudprovider, you can export your record sets. Both public and private zones supportthe record export function.
This section uses the domain name example.com as an example.
Procedure1. Log in to the management console.
2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. In the navigation pane, choose Public Zones or Private Zones.
The zone list is displayed.
4. (Optional) If you have selected Private Zones, click on the upper leftcorner to select the region and project.
5. In the public zone list, click the zone name example.com.
6. Choose Export and Import.
7. Click Export Record Set.
An example.com.xlsx file is exported, which lists all record sets in the zone,including the record set name, type, TTL, and value.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 65
3.9 Migrating a Domain Name
ScenariosYou can migrate a domain name that is registered with another registrar andalready being used on the Internet to the DNS service.
ProcessFigure 3-4 shows the process for migrating a domain name.
Figure 3-4 Process for migrating a domain name
Obtaining Domain Name Record SetsBefore you migrate the domain name to HUAWEI CLOUD, migrate all its recordsfrom the domain name registrar. You can export all record sets at a time if batchexporting is supported.
For details, see the documentation of the domain name registrar.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 66
Creating a Public ZoneOn the DNS console, create a public zone for the domain name that you want tomigrate.
For details, see Creating a Public Zone.
Adding Record SetsOn the DNS console, add record sets of the domain name to the created publiczone. The DNS service allows you to import record sets.
For details, see Importing Record Sets.
Run the following commands in the DOS window on a PC connected to theInternet to test whether a record set has taken effect:
● ping Domain name● nslookup [-qt= Type] Target domain name Authoritative DNS server● dig Type Target domain name @Authoritative DNS server
NO TE
● Set Type in the nslookup and dig commands to the record type, for example, A,CNAME, TXT, or MX, to check whether the record set of that type works. If you do notspecify a type, the system queries the A record set by default.
● If dig has not installed, you need to manually install it first.● The preceding commands can be used to test both public and private domain names.
Changing DNS Server Addresses of the Domain Name1. Change the DNS server address of the domain name service provider. For
details, see the operation guide on the official website of the domain nameservice provider.
2. Wait for the change to take effect.Typically, changes to DNS server addresses are quickly updated to top-levelDNS servers and take effect on the Internet. However, some domain nameregistrars set the TTL value of the NS record to 48 hours. In this scenario, ifthe NS record is cached by a local DNS server, the changes will take effect in48 hours.You can check the time when the changes take effect on the website of thedomain name registrar. Do not delete original record sets until the changestake effect. In this case, even if the change does not take effect, your serviceswill not be interrupted.
Domain Name ServiceUser Guide 3 Record Set
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 67
4 PTR Record
4.1 OverviewReverse resolution involves obtaining a domain name based on an IP address andis typically used to improve credibility of email servers.
After a recipient server receives an email, it checks whether the IP address anddomain name of the sender server are trustworthy and determines whether theemail is spam. If the recipient server fails to obtain the domain name mapped tothe sender's IP address, it considers that the email is sent by a malicious host andrejects it. Therefore, it is necessary to map IP addresses of your email servers todomain names by adding PTR records.
Table 4-1 PTR record description
Operation Scenario Constraint
Creating aPTR Record
Create PTR records forcloud resources such asECS.
● PTR records are project-levelresources. When you create a PTRrecord, you need to select a regionand project.
● Each user can add a maximum of50 PTR records.
ManagingPTRRecords
Modify, delete, andquery PTR records.
● After you created a PTR record, itsEIP cannot be changed.
● After you delete a PTR record, thedomain name mapped to your EIPwill change to the default domainname.
Domain Name ServiceUser Guide 4 PTR Record
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 68
4.2 Creating a PTR Record
ScenariosPTR records are used to prove credibility of IP addresses and domain names ofemail servers. Most spam senders use email servers whose IP addresses aredynamically allocated or not mapped to registered domain names in order toavoid being tracked. If you do not want emails sent from your email server to beconsidered as spam, add a PTR record to map the email server IP address to adomain name. In this way, the email recipient can obtain the domain name by IPaddress and will know that the email server is trustworthy.
If you use an ECS as an email server, configure a PTR record to map the ECS IPaddress to a domain name.
This section describes how to add a PTR record for a cloud resource, such as ECS.
ConstraintsCurrently, you can configure PTR records only for IP addresses with a 32-bit subnetmask.
Prerequisites● You have registered a domain name with HUAWEI CLOUD or a third-party
registrar.● You have created an ECS and bound an EIP to it.
Procedure1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose PTR Records.
The PTR Records page is displayed.
4. Click in the upper left corner and select the desired region and project.5. Click Create PTR Record.
Domain Name ServiceUser Guide 4 PTR Record
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 69
Figure 4-1 Creating a PTR record
6. Set the parameters based on Table 4-2.
Table 4-2 Parameters for creating a PTR record
Parameter Description Example Value
EIP EIP of another cloud resource, forexample, ECSYou can select an EIP from thedrop-down list.
XX.XX.XX.XX
Name Domain name mapped to the EIP www.example.com
TTL (s) Cache duration period of the PTRrecord, in secondsThe default value is 300, which is, 5minutes.
300
Tag (Optional) Identifier of a resourceEach tag contains a key and avalue. You can add a maximum of10 tags to a PTR record.For details about tag key and valuerequirements, see Table 4-3.
example_key1example_value1
Description (Optional) Supplementaryinformation about the PTR record
The description of thePTR Record.
Domain Name ServiceUser Guide 4 PTR Record
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 70
Table 4-3 Tag key and value requirements
Parameter Requirements Example Value
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36
characters.● Cannot start or end with a space
or contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43
characters.● Cannot start or end with a space
or contain special characters =*<>\,|/
example_value1
7. Click OK.
View the created PTR record on the PTR Records page.
NO TE
If the domain name is mapped to multiple EIPs, you must create a PTR record for eachEIP.
8. Verify that the PTR record has taken effect.Run the following DOS command on a PC connected to the Internet:nslookup -qt=ptr IP address
4.3 Managing PTR Records
ScenariosYou can modify or delete PTR records and view their details.
Modifying a PTR RecordModify the domain name, TTL, or description of a PTR record.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose PTR Records.
The PTR Records page is displayed.
4. Click in the upper left corner and select the desired region and project.5. Locate the PTR record you want to modify and click Modify under Operation.
The Modify PTR Record dialog box is displayed.
Domain Name ServiceUser Guide 4 PTR Record
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 71
6. Change the domain name, TTL, or description as required.7. Click OK.
Deleting a PTR RecordDelete a PTR record if you no longer need it. After you delete a PTR record, thedomain name mapped to your EIP will change to the default domain name.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose PTR Records.
The PTR Records page is displayed.
4. Click in the upper left corner and select the desired region and project.5. Locate the PTR record you want to delete and click Delete under Operation.6. Click Yes.
Batch Deleting PTR RecordsDelete multiple PTR records at a time. After you delete the PTR records, thedomain names mapped to your EIPs will change to the default domain names.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose PTR Records.
The PTR Records page is displayed.
4. Click in the upper left corner and select the desired region and project.5. Select the PTR records and click Delete.6. In the Delete PTR Record dialog box, click Yes.
Figure 4-2 Delete PTR Record
Domain Name ServiceUser Guide 4 PTR Record
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 72
Viewing Details About a PTR RecordAfter a PTR record is created, you can view its details, including the zone ID, TTL,tag, and EIP.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.
3. On the Dashboard page, click PTR Records under My Resources.
4. Click in the upper left corner and select the desired region and project.5. In the PTR record list, view the record details.
Domain Name ServiceUser Guide 4 PTR Record
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 73
5 Resolution Line
5.1 OverviewUsually, a DNS server returns the same resolution result to visitors from differentnetworks or geographic locations. However, in cross-network or cross-regionaccess, this would lead to long latency and poor user experience.
With resolution lines, you can specify that the DNS server return differentresolution results for the same domain name based on the networks orgeographic locations of visitors' IP addresses.
For a website deployed on multiple servers, you can use set weights for the recordsets to balance the workloads of these servers.
Table 5-1 describes the scenario and operation to configure a desired resolutionline.
Table 5-1 Resolution lines
Operation Scenario Constraint
Configuring ISPLines for RecordSets
Configure ISP lines to distinguishvisitors by carrier.
Resolution lines canonly be configuredfor public zones.
ConfiguringRegion Lines forRecord Sets
Configure region lines to distinguishvisitors by geographic location.
Resolution lines canonly be configuredfor public zones.
ConfiguringWeightedResolution
Configure weight-based resolutionfor load balancing based on theproportion of requests to eachrecord set.
Resolution lines canonly be configuredfor public zones.
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 74
5.2 Configuring ISP Lines for Record Sets
Background
Usually, a DNS server returns the same IP address to visitors from differentnetworks. However, in cross-network access, this would lead to long latency andpoor user experience.
If you configure ISP lines when you create record sets, the DNS server returnsdifferent resolution results or IP addresses to visitors based on their carriernetworks.
NO TE
ISP lines can be used only in public zones.
For example, you have built a website using domain name example.com andhosted the website on three servers, with one in a China Telecom equipmentroom, one in a China Unicom equipment room, and one in a China Mobileequipment room. You need to configure four ISP lines: Default, China Telecom,China Unicom, and China Mobile.
ISP Line Branches
ISP lines are categorized by telecom carriers in China, as shown in Table 5-2.
Table 5-2 ISP line branches
Level 1 Level 2 Level 3
China Telecom, ChinaMobile, China Unicom,Jiaoyuwang, Pengboshi,and Tietong
North China Beijing, Tianjin, Hebei, Shanxi, andInner Mongolia
NortheastChina
Liaoning, Jilin, and Heilongjiang
NorthwestChina
Shaanxi, Gansu, Qinghai, Ningxia,and Xinjiang
Central China Henan, Hubei, and Hunan
East China Shanghai, Jiangsu, Zhejiang, Anhui,Fujian, Jiangxi, and Shandong
South China Guangdong, Hainan, and Guangxi
SouthwestChina
Chongqing, Sichuan, Guizhou,Yunnan, and Tibet
For example, you have configured the following resolution lines for record setexample.com:
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 75
● Default: 1.1.1.1● China Telecom: 2.2.2.2● China Telecom_North China: 3.3.3.3
When a China Telecom user in North China requests the domain name, IP address3.3.3.3 is returned. When a China Telecom user in another region requests thedomain name, IP address 2.2.2.2 is returned. When a non-China Telecom user inother regions requests the domain name, IP address 1.1.1.1 is returned.
Configure ISP Lines
You can configure ISP lines for your public domain names hosted on HUAWEICLOUD.
The following example describes how to configure the record set of the Defaultline to 1.1.1.1 and the record set of the China Telecom line to 2.2.2.2 forexample.com.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.
4. Click the name (example.com) of the public zone.The Record Sets page is displayed.
5. Click Add Record Set.
Figure 5-1 Add Record Set
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 76
6. Add two A record sets for example.com. Set the parameters based on Table5-3.
Table 5-3 Parameters for adding an A record set
Parameter
Description Line 1 Line 2
Name Prefix of the domain name to beresolvedFor example, if the zone name isexample.com, the domain nameprefix can be as follows:● www: The domain name is
www.example.com, which isusually used for a website.
● Left blank: The domain nameis example.com.
● abc: The domain name isabc.example.com, asubdomain of example.com.
● mail: The domain name ismail.example.com, which istypically used for an emailserver.
● *: The domain name is*.example.com, which is awildcard domain name,indicating all subdomains ofexample.com.
www www
Type Type of the record set A – Mapdomains toIPv4addresses
A – Mapdomains toIPv4addresses
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 77
Parameter
Description Line 1 Line 2
Line Resolution lineThe DNS server will return the IPaddress of the specified line,depending on where the visitorscome from.● Default: returns the default
resolution result irrespectiveof where the visitors comefrom.
● ISP: returns the resolutionresult based on visitors' carriernetworks.
● Region: returns the resolutionresult based on visitors'geographical locations. Fordetails, see ConfiguringRegion Lines for Record Sets.
Default ISP_ChinaTelecom
TTL (s) Cache duration of the record seton a local DNS server, in secondsThe value ranges from 1 to2147483647, and the default is300.If your service address changesfrequently, set TTL to a smallervalue.Learn more about TTL.
The defaultvalue is 300,which is, 5minutes.
The defaultvalue is 300,which is, 5minutes.
Value IPv4 addresses mapped to thedomain nameEnter each IPv4 address on aseparate line.
1.1.1.1 2.2.2.2
Weight (Optional) Weight of a recordset. The value ranges from 0 to1000, and the default value is 1.This parameter is supported onlyfor public domain names.If a resolution line in a zonecontains multiple record sets ofthe same type, you can setdifferent weights to each recordset. For details, see ConfiguringWeighted Resolution.
1 1
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 78
Parameter
Description Line 1 Line 2
Tag (Optional) Identifier of aresourceEach tag contains a key and avalue. You can add a maximumof 10 tags to a record set. Thisparameter is displayed when youenable Other Settings.For details about tag key andvalue requirements, see Table5-4.
example_key1example_value1
example_key1example_value1
Description
(Optional) Supplementaryinformation about the record set.This parameter is displayed whenyou enable Other Settings.You can enter a maximum of 255characters.
- -
Table 5-4 Tag key and value requirements
Item Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
7. Click OK.
5.3 Configuring Region Lines for Record Sets
Background
Usually, a DNS server returns the same resolution result to all visitors, irrespectiveof where they come from. In cross-region access, this would lead to long latencyand poor user experience.
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 79
If you configure region lines when you create record sets, the DNS server returnsdifferent resolution results or IP addresses to visitors based on their locations.
NO TE
Region lines can be used only in public zones. You cannot specify region lines in privatezones or PTR records.
For example, you have built a website using domain name example.com andhosted the website on two servers, one in Chinese mainland and the other inanother region or country. You need to configure three lines: Default, Chinesemainland, and Global.
Region Line BranchesRegion lines are categorized by geographic areas, as shown in Table 5-5.
Table 5-5 Region line branches
Level 1 Level 2 Level 3
Chinesemainland
North China Beijing, Tianjin, Hebei,Shanxi, and InnerMongolia
Northeast China Liaoning, Jilin, andHeilongjiang
Northwest China Shaanxi, Gansu, Qinghai,Ningxia, and Xinjiang
Central China Henan, Hubei, and Hunan
East China Shanghai, Jiangsu,Zhejiang, Anhui, Fujian,Jiangxi, and Shandong
South China Guangdong, Hainan, andGuangxi
Southwest China Chongqing, Sichuan,Guizhou, Yunnan, andTibet
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 80
Level 1 Level 2 Level 3
Global Asia Pacific Taiwan (China), HongKong (China), Macao(China), Japan, SouthKorea, India, Turkey,Indonesia, Vietnam,Singapore, Thailand,Malaysia, Bangladesh,UAE, Armenia, Azerbaijan,Bahrain, Brunei, Bhutan,Christmas Island, Georgia,Iraq, Jordan, Kyrgyzstan,Cambodia, Kuwait,Kazakhstan, Lebanon, SriLanka, Myanmar,Mongolia, Maldives,Nepal, Oman, Philippines,Pakistan, Palestine, Qatar,Saudi Arabia, Tajikistan,Timor-Leste,Turkmenistan, Uzbekistan,Yemen, Cyprus, Israel,American Samoa, CookIslands, Federated Statesof Micronesia, Guam,Kiribati, Marshall Islands,Northern Mariana Islands,New Caledonia, NorfolkIsland, Nauru, FrenchPolynesia, Papua NewGuinea, Palau, SolomonIslands, Tokelau Islands,Tonga, Tuvalu, Vanuatu,Samoa, Afghanistan, andLaos
Oceania Australia and NewZealand
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 81
Level 1 Level 2 Level 3
Europe United Kingdom,Germany, France, Italy,Russia, Spain, Ukraine, theNetherlands, Sweden,Poland, British IndianOcean Territory, Belarus,Andorra, Albania, Austria,Aland Islands, Belgium,Bulgaria, Switzerland,Czech Republic, Denmark,Estonia, Finland, FaroeIslands, Guernsey,Gibraltar, Greece, Croatia,Hungary, Ireland, Isle ofMan, Iceland, Jersey,Liechtenstein, Lithuania,Luxembourg, Latvia,Monaco, Moldova,Montenegro, NorthMacedonia, Malta,Norway, Portugal,Romania, Serbia, Slovenia,Slovakia, San Marino,Vatican, Kosovo, andGreenland
North America United States, Canada,Mexico, Antigua andBarbuda, Barbados,Bahamas, Belize, CostaRica, the Commonwealthof Dominica, theDominican Republic,Grenada, Guatemala,Honduras, Haiti, Jamaica,Saint Kitts and Nevis,Cayman Islands, SaintLucia, Nicaragua, Panama,Puerto Rico, El Salvador,Turks and Caicos Islands,Trinidad and Tobago,British Virgin Islands,United States VirginIslands, and Saint Vincentand the Grenadines
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 82
Level 1 Level 2 Level 3
South America Brazil, Argentina, Anguilla,Aruba, St. Barthelemy,Bermuda, Guadeloupe,Montserrat, Bolivia, Chile,Colombia, Curaçao,Ecuador, French Guiana,Guyana, Peru, ParaguayUruguay, Suriname,Uruguay, and Venezuela
Africa South Africa, Egypt,Angola, Burkina Faso,Burundi, Benin, Botswana,Congo-Kinshasa, CentralAfrican Republic, theRepublic of Congo, IvoryCoast, Cameroon, CapeVerde, Djibouti, Algeria,Eritrea, Ethiopia, Gabon,Ghana, Gambia, Guinea,Equatorial Guinea,Guinea-Bissau, Kenya,Comoros, Liberia, Lesotho,Libya, Morocco,Madagascar, Mali,Mauritania, Mauritius,Malawi, Mozambique,Niger, Nigeria, Reunion,Rwanda, Seychelles, SierraLeone, Senegal, Somalia,South Sudan, Sao Tomeand Principe, Swaziland,Chad, Togo, Tunisia,Tanzania, Uganda,Mayotte, Zambia,Zimbabwe, and Namibia
For example, you have configured the following resolution lines for record setexample.com:
● Default: 1.1.1.1● Chinese mainland: 2.2.2.2● Global_Hong Kong (China): 3.3.3.3
When a user in Shanghai requests the domain name, IP address 2.2.2.2 is returned.When a user in Hong Kong requests the domain name, IP address 3.3.3.3 isreturned. When a user in New Zealand requests the domain name, IP address1.1.1.1 is returned.
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 83
Configure Region LinesYou can configure region lines for your public domain names hosted on HUAWEICLOUD.
The following example describes how to configure the record set of the Defaultline to 1.1.1.1 and the record set of the Global_Hong Kong (China) line to 2.2.2.2for example.com.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.
4. On the Public Zones page, click the name (example.com) of the public zone.The Record Sets page is displayed.
5. Click Add Record Set.The Add Record Set dialog box is displayed.
Figure 5-2 Add Record Set
6. Add two A record sets for example.com. Set the parameters based on Table5-6.
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 84
Table 5-6 Parameters for adding an A record set
Parameter
Description Line 1 Line 2
Name Prefix of the domain name to beresolvedFor example, if the zone name isexample.com, the domain nameprefix can be as follows:● www: The domain name is
www.example.com, which isusually used for a website.
● Left blank: The domain name isexample.com.
● abc: The domain name isabc.example.com, a subdomainof example.com.
● mail: The domain name ismail.example.com, which istypically used for an emailserver.
● *: The domain name is*.example.com, which is awildcard domain name,indicating all subdomains ofexample.com.
www www
Type Type of the record set A – Mapdomains toIPv4addresses
A – Mapdomainsto IPv4addresses
Line The DNS server will return the IPaddress of the specified line,depending on where the visitorscome from.● Default: returns the default
resolution result irrespective ofwhere the visitors come from.
● ISP: returns the resolution resultbased on visitors' carriernetworks. For details, seeConfiguring ISP Lines forRecord Sets.
● Region: returns the resolutionresult based on visitors'geographical locations.
Default SelectRegionandGlobal_AsiaPacific_Hong Kong(China)
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 85
Parameter
Description Line 1 Line 2
TTL (s) Cache duration of the record set ona local DNS server, in secondsThe value ranges from 1 to2147483647, and the default is300.If your service address changesfrequently, set TTL to a smallervalue.Learn more about TTL.
The defaultvalue is300, whichis, 5minutes.
Thedefaultvalue is300, whichis, 5minutes.
Value IPv4 addresses mapped to thedomain nameEvery two IPv4 addresses areseparated using a line break.
1.1.1.1 2.2.2.2
Weight (Optional) Weight of a record set.The value ranges from 0 to 1000,and the default value is 1.This parameter is supported onlyfor public domain names.If a resolution line in a zonecontains multiple record sets of thesame type, you can set differentweights to each record set. Fordetails, see Configuring WeightedResolution.
1 1
Tag (Optional) Identifier of a resourceEach tag contains a key and avalue. You can add a maximum of10 tags to a record set. Thisparameter is displayed when youenable Other Settings.For details about tag key and valuerequirements, see Table 5-7.
example_key1example_value1
example_key1example_value1
Description
(Optional) Supplementaryinformation about the record set.This parameter is displayed whenyou enable Other Settings.You can enter a maximum of 255characters.
- -
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 86
Table 5-7 Tag key and value requirements
Item Requirements ExampleValue
Key ● Cannot be left blank.● Must be unique for each resource.● Can contain a maximum of 36 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_key1
Value ● Cannot be left blank.● Can contain a maximum of 43 characters.● Cannot start or end with a space or
contain special characters =*<>\,|/
example_value1
7. Click OK.
5.4 Configuring Weighted Resolution
Scenarios
A large web application is usually deployed on multiple servers. To balance theworkloads of each server, you can use weights to control the proportion ofrequests to each server.
The DNS service allows you to set weights to record sets to poll the requests todifferent servers based on the specified weights.
When your site has multiple servers and each server has an independent IPaddress, consider weighted polling to distribute requests to different servers basedon a certain proportion.
For example, you have a website deployed on three servers, and the domain nameof your website is example.com. The IP addresses of the three servers are192.168.1.1, 192.168.1.2, and 192.168.1.3.
● If weights are not set, you can add an A record set and set its value to threeIP addresses.
In this case, requests are randomly routed an IP address. For details, see HowIs a Domain Name Resolved When a Record Set Has Multiple Values?
● When weights are specified, you can configure three A record sets, with eachhaving an IP address as its value.
In this case, you can set different weights for the three record sets. In this way,requests are routed to each server according to the proportion of requeststhat each server can receive.
Weighted resolution can better distribute requests and balance server workloads.Perform the following steps to set the weights:
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 87
Preparations
In the following table, there are three web servers, and three A record sets havebeen added, each mapping to an IP address. You can set different weights tocontrol the proportion of requests to each server.
Table 5-8 Data planning
Solution
Domain
Record SetType
Line Value Weight
Description
1 example.com
A Default
192.168.1.1
1 Requests are evenlydistributed to three servers(the proportion of requests is1:1:1).192.16
8.1.21
192.168.1.3
1
2 example.com
A Default
192.168.1.1
2 Requests are distributed tothree servers in a proportionof 2:3:1.For example, if there are sixrequests, two are routed tothe server whose IP addressis 192.168.1.1, three arerouted to the server whoseIP address is 192.168.1.2, andone is routed to the serverwhose IP address is192.168.1.3.
192.168.1.2
3
192.168.1.3
1
Prerequisites
The domain name of the website has been hosted on the DNS service.
Procedure
The following describes how to set three A record sets for domain nameexample.com, and the weight ratio of the three record sets is 1:1:1.
1. Log in to the management console.2. In the Network category, click Domain Name Service.
The DNS console is displayed.3. In the navigation pane, choose Public Zones.
The Public Zones page is displayed.
4. On the Public Zones page, click the name (example.com) of the public zone.The Record Sets page is displayed.
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 88
5. Click Add Record Set.
Figure 5-3 Setting weights
6. Set the parameters as follows:– 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.– Line Type: Select Default.– Value: Set it to 192.168.1.1, the IP address of the first server.– Weight: Set it to 1.
7. Click OK.8. Repeat 5 to 7 to add the second and third record sets.
Set the record set value to 192.168.1.2 and 192.168.1.3, respectively.Requests will be evenly distributed to the three servers.
Domain Name ServiceUser Guide 5 Resolution Line
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 89
6 Key Operations Recorded by CTS
6.1 DNS Operations Recorded by CTSCTS is interconnected with the DNS service to record operations performed byusers in real time. Actions and results of the operations are stored in OBS bucketsin the form of traces.
After you enable CTS, whenever a DNS API is called, the operation is recorded in alog file, which is then delivered to a specified OBS bucket for storage.
Table 6-1 and Table 6-2 list the DNS operations that will be recorded by CTS.
NO TE
The DNS service involves resources both at the global and region levels. Table 6-1 lists DNSoperations at the global level. Traces of these operations are displayed only in the primaryregion.
Table 6-2 lists DNS operations at the region level. Traces of these operations are displayedin the regions where the operations are performed.
Table 6-1 Global-level DNS operations that can be recorded by CTS
Operation Resource Type Trace Name
Creating a record set in apublic zone
publicRecordSet createPublicRecordSet
Deleting a record set in apublic zone
publicRecordSet deletePublicRecordSet
Modifying a record set in apublic zone
publicRecordSet updatePublicRecordSet
Creating a public zone publicZone createPublicZone
Modifying a public zone publicZone updatePublicZone
Deleting a public zone publicZone deletePublicZone
Domain Name ServiceUser Guide 6 Key Operations Recorded by CTS
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 90
Operation Resource Type Trace Name
Adding tags to a publiczone
publicZoneTag createPublicZoneTag
Deleting tags from apublic zone
publicZoneTag deletePublicZoneTag
Adding tags to a recordset in a public zone
publicRecordSet-Tag
createPublicRecordSetTag
Deleting tags of a recordset in a public zone
publicRecordSet-Tag
deletePublicRecordSetTag
Adding tags to a privatezone
privateZoneTag createPrivateZoneTag
Deleting tags from aprivate zone
privateZoneTag deletePrivateZoneTag
Adding tags to a recordset in a private zone
privateRecordSet-Tag
createPrivateRecordSetTag
Deleting tags from arecord set in a privatezone
privateRecordSet-Tag
deletePrivateRecordSetTag
Adding tags to a PTRrecord
ptrRecordTag createPTRRecordSetTag
Deleting tags of a PTRrecord
ptrRecordTag deletePTRRecordTag
Table 6-2 Region-level DNS operations that can be recorded by CTS
Operation Resource Type Trace Name
Creating a record set ina private zone
privateRecordSet createPrivateRecordSet
Deleting a record set ina private zone
privateRecordSet deletePrivateRecordSet
Modifying a record setof a private zone
privateRecordSet updatePrivateRecordSet
Creating a private zone privateZone createPrivateZone
Modifying a privatezone
privateZone updatePrivateZone
Deleting a private zone privateZone deletePrivateZone
Associating a VPC witha private zone
privateZone associateRouter
Domain Name ServiceUser Guide 6 Key Operations Recorded by CTS
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 91
Operation Resource Type Trace Name
Disassociating a VPCfrom a private zone
privateZone disassociateRouter
Configuring a PTRrecord
ptrRecord setPTRRecord
Deleting a PTR record ptrRecord resetPTRRecord
6.2 CTS Traces
ScenariosAfter CTS is enabled, the tracker starts recording operations on cloud resources.You can view operation records of the last 7 days on the CTS console.
This section describes how to query these records.
Procedure1. Log in to the management console.
2. Click in the upper left corner and select the desired region and project.3. Click Service List and select Cloud Trace Service under Management &
Deployment.4. In the navigation pane, choose Trace List.5. Specify the filters used for querying traces. The following filters are available:
– Trace Type, Trace Source, Resource Type, and Search BySelect a filter from the drop-down list.If you select Trace name for Search By, specify a trace name.If you select Resource ID for Search By, specify a resource ID.If you select Resource name for Search By, specify a resource name.
– Operator: Select a user who performs operations.– Trace Status: Select All trace statuses, normal, warning, or incident.– Time range: Specify the start and end time to view traces generated
during a time range of the last seven days.
6. Click on the left of the required trace to expand its details.7. Click View Trace. A dialog box is displayed, in which the trace structure
details are displayed.
Domain Name ServiceUser Guide 6 Key Operations Recorded by CTS
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 92
7 Quota Adjustment
What Is Quota?
Quotas are enforced for service resources on the platform to prevent unforeseenspikes in resource usage. Quotas can limit the number and capacity of resourcesavailable to users, for example, the maximum number of zones, PTR records, orrecord sets that you can create.
If the existing resource quota cannot meet your service requirements, you canapply for a higher quota.
How Do I View My Quotas?1. Log in to the management console.
2. Click in the upper left corner and select the desired region and project.
3. In the upper right corner of the page, choose Resources > My Quotas.
The Service Quota page is displayed.
Figure 7-1 My Quotas
4. View the used and total quota of each type of resources on the displayedpage.
If a quota cannot meet service requirements, apply for a higher quota.
Domain Name ServiceUser Guide 7 Quota Adjustment
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 93
How Do I Apply for a Higher Quota?1. Log in to the management console.2. In the upper right corner of the page, choose Resources > My Quotas.
The Service Quota page is displayed.
Figure 7-2 My Quotas
3. Click Increase Quota.4. On the Create Service Ticket page, configure parameters as required.
In Problem Description area, fill in the content and reason for adjustment.5. After all necessary parameters are configured, select I have read and agree
to the Tenant Authorization Letter and Privacy Statement and clickSubmit.
Domain Name ServiceUser Guide 7 Quota Adjustment
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 94
A Change History
Released On Description
2020-07-15 This issue is the eighth official release, which incorporates thefollowing changes:Modified the following content:Added more details for regional lines in section ConfiguringRegion Lines for Record Sets.Added the following section:Configuring Weighted Resolution
2020-02-12 This issue is the seventh official release, which incorporates thefollowing changes:Added feature overview in the following chapters:● Overview● Overview● Overview● OverviewOptimized the operation scenarios in the whole document.
2019-07-02 This issue is the sixth official release, which incorporates thefollowing changes:Added the following sections:● Configuring ISP Lines for Record Sets● Configuring Region Lines for Record SetsUpdated the screenshots.
2019-03-05 This issue is the fifth official release, which incorporates thefollowing changes:Updated the screenshots.
Domain Name ServiceUser Guide A Change History
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 95
Released On Description
2019-02-14 This issue is the fourth official release, which incorporates thefollowing changes:Added the following section:Quota Adjustment
2018-10-30 This issue is the third official release, which incorporates thefollowing changes:Added the following sections:● Regaining a Domain Name● Importing Record Sets
2018-06-25 This issue is the second official release, which incorporates thefollowing changes:● Changed the tag character set range.● Supported private zones.
2018-04-25 This issue is the first official release.
Domain Name ServiceUser Guide A Change History
Issue 08 (2020-07-15) Copyright © Huawei Technologies Co., Ltd. 96