Creating a Subdomain
Scenarios
A subdomain and its primary domain name are indeed part of the same registered domain. A subdomain is essentially an extension of the primary domain name, created by adding a prefix (one or more parts) before the primary domain name. You can use subdomains to categorize and separate different types of services, languages, and brands on your website, while also allowing for flexibility in DNS management.
Take example.com as an example. You add the following subdomains for it:
- Subdomains to provide clear navigation paths for different sections of the website, such as www.example.com (main site), blog.example.com (blog), and shop.example.com (online store).
- Subdomains to indicate distinct language-specific sections of the website, such as en.example.com (English) and zh.example.com (Chinese).
- Subdomains for distinct branding and tailored content for each product, for example, productA.example.com and productB.example.com.
Prerequisites
You have registered a domain name.
Procedure
- Go to the Public Zones page.
- In the upper right corner of the page, click Create Public Zone.
Configure the parameters based on Table 1.Figure 1 Creating a public zone
Table 1 Parameters for creating a subdomain Parameter
Description
Example
Domain Name
Subdomain of the domain name purchased from a domain name registrar.
For details about the domain name format, see Domain Name Format and DNS Hierarchy.
www.example.com
Enterprise Project
Enterprise project associated with the public zone. You can manage public zones by enterprise project.
This parameter is available and mandatory only when Account Type is set to Enterprise Account.
When setting this parameter, note the following:
- If you do not manage zones by enterprise project, select the default enterprise project.
- If you manage zones by enterprise project, select an existing enterprise project.
default
Tag
Optional.
Identifier of the zone. Each tag contains a key and a value. You can add up to 20 tags to a zone.
For details about tag key and value requirements, see Table 2.
NOTE:If your organization has configured tag policies for the DNS service, you need to add tags to your public zones based on the tag policies. If you add a tag that does not comply with the tag policies, public zones may fail to be created. Contact the administrator to learn more about tag policies.
example_key1
example_value1
Description
Optional.
Supplementary information about the zone.
The description can contain a maximum of 255 characters.
Subdomain of example.com
Table 2 Tag key and value requirements Parameter
Requirements
Example
Key
- Cannot be left blank.
- Must be unique for each resource.
- Can contain a maximum of 128 characters.
- Cannot start or end with a space, or cannot start with _sys_. Only letters, digits, spaces, and the following special characters are allowed: _.:=+-@
example_key1
Value
- Can be left blank.
- Can contain a maximum of 255 characters.
- Can contain letters, digits, spaces, and the following special characters: _.:/=+-@
example_value1
- Click OK.
You can view the created subdomain in the zone list.
If "This public zone conflicts with a public zone created by another account." is displayed when you create a subdomain, log in to the account of the primary domain name and add a TXT record set for the primary domain name.
Helpful Links
- You can modify, delete, and view details about the subdomain. For details, see Managing Public Zones.
- You can add record sets for a zone. For details, see Adding Record Sets for a Public Zone.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot