Облачная платформаAdvanced

Creating a Private Zone

Эта статья полезна?
Язык статьи: Английский
Перевести

Scenarios

To start hosting your private domain name in DNS, you first need to create a private zone to map the private domain name to a private IP address within a VPC.

Prerequisites

  • You have created a VPC.
  • You have created an ECS in the VPC and planned a private domain name (example.com) for the ECS.

Procedure

  1. Log in to the management console.
  2. In the service list, choose Network > Domain Name Service.

    The DNS console is displayed.

  3. In the navigation pane on the left, choose Private Zones.

    The Private Zones page is displayed.

  4. Click in the upper left corner and select the desired region and project.
  5. In the upper right corner of the page, click Create Private Zone.
  6. Configure the parameters.

    Table 1 describes the parameters.

    Table 1 Parameters for creating a private zone

    Parameter

    Description

    Example Value

    Domain Name

    Domain name you have planned for the ECS.

    You can enter a top-level domain that complies with the domain naming rules.

    example.com

    VPC

    VPC to be associated with the private zone.

    NOTE:

    This VPC you choose must be the VPC where your servers (such as ECSs) are. Otherwise, the domain name cannot be resolved.

    -

    Email

    (Optional) Email address of the administrator managing the private zone.

    Recommended email address: HOSTMASTER@Domain name

    For details about the email address, see Why Was the Email Address Format Changed in the SOA Record?

    HOSTMASTER@example.com

    Enterprise Project

    Enterprise project associated with the private zone.

    You can manage private zones by enterprise project.

    NOTE:

    This parameter is available and mandatory only when Account Type is set to Enterprise Account.

    When configuring 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.

      Before you configure this parameter, create an enterprise project.

    default

    Tag

    (Optional) Identifier of the zone.

    Identifier of the zone. Each tag contains a key and a value. You can add up to 10 tags to a zone.

    For details about tag key and value requirements, see Table 2.

    example_key1

    example_value1

    Description

    (Optional) Supplementary information about the zone.

    The description can contain no more than 255 characters.

    This is a zone example.

    Table 2 Tag key and value requirements

    Parameter

    Requirements

    Example Value

    Key

    • Cannot be left blank.
    • Must be unique for each resource.
    • Can contain no more than 36 characters.

    example_key1

    Value

    • Cannot be left blank.
    • Can contain no more than 43 characters.

    example_value1

  7. Click OK.
  8. Switch back to the Private Zones page.

    You can view the created private zone on the Private Zones page.

  9. Click the domain name to add record sets.

    On the Record Sets tab, click Add Record Set. For details about the parameters, see Record Set Overview.

    Note

    You can click the domain name to view SOA and NS record sets automatically added to the zone.

    • The SOA record set includes administrative information about your zone, as defined by the Domain Name System (DNS).
    • The NS record set defines the authoritative DNS servers for the domain name.

Follow-up Operations

After a private zone is created, you can perform the following operations: