• Domain Name Service

dns
  1. Help Center
  2. Domain Name Service
  3. User Guide
  4. Zone Management
  5. Managing Private Zones

Managing Private Zones

Viewing Details About a Private Zone

  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 on the upper left and select the desired region and project.
  5. View the private zone details.

Creating a Private Zone

Create a private zone if a new domain name is to be managed using the DNS service.

  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 on the upper left and select the desired region and project.
  5. Click Create Private Zone.
    Figure 1 Create Private Zone
  6. Configure the parameters according to Table 1.
    Table 1 Parameters required for creating a private zone

    Parameter

    Description

    Example Value

    Name

    Private domain name

    You can customize any correctly formatted top-level domain names.

    example.com

    VPC

    VPC to be associated with the private zone

    -

    Email

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

    It is recommended that you set the email address to HOSTMASTER@Domain name.

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

    HOSTMASTER@example.com

    Tag

    (Optional) Identifier of a resource. Each tag contains a key and a value. You can add 10 tags at most to a zone.

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

    example_key1

    example_value1

    Description

    (Optional) Description of the domain name, which cannot exceed 255 characters

    This is a private zone.

    Table 2 Tag key and value requirements

    Parameter

    Requirement

    Example Value

    Key

    • Cannot be left blank.
    • Must be unique for each resource.
    • Consists of at most 36 characters.
    • Contains only letters, digits, hyphens (-), and underscores (_).

    example_key1

    Value

    • Cannot be left blank.
    • Consists of at most 43 characters.
    • Contains only letters, digits, hyphens (-), and underscores (_).

    example_value1

  7. Click OK.

    You can query information about the private zone you created on the Private Zones page.

    NOTE:

    Click the zone name to query detailed zone information. The system has created record sets of the SOA type and NS type in the zone.

    • The SOA record set determines 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.

Modifying a Private Zone

If the email address or description of a private zone has changed, you can modify them.

  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 on the upper left and select the desired region and project.
  5. Locate the zone to be modified and click Modify under Operation.

    The Modify Private Zone box is displayed.

  6. Change the email address or description of the zone.
  7. Click OK.

Associating a VPC

You can associate a new VPC with the private zone 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 Private Zones.

    The Private Zones page is displayed.

  4. Click on the upper left and select the desired region and project.
  5. Locate the private zone to be associated with the VPC and click Associate VPC in the Operation column.
    Figure 2 Associate VPC

  6. Configure the parameters according to Table 3.
    Table 3 Associating a VPC

    Parameter

    Description

    Example Value

    Name

    Private zone name

    example.com

    VPC

    VPC to be associated with the private zone

    -

  7. Click OK.

Disassociating a VPC

If multiple VPCs are associated with a private zone, you can disassociate one of them on the console.

NOTE:

If only one VPC is associated, you cannot disassociate it from the private zone. You can choose to delete the private zone if necessary.

  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 on the upper left and select the desired region and project.
  5. Locate the private zone to be disassociated with the VPC and click in the Associated VPC column to disassociate a VPC.
    Figure 3 Private Zones
  6. In the Disassociate VPC box, click Yes.
    Figure 4 Disassociate VPC

Deleting a Private Zone

A private zone can be deleted if you do not need to manage it using the DNS service. After the deletion, domain names included in this zone cannot be resolved.

Before deleting a private zone, ensure that all record sets in this zone have been backed up.

  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 on the upper left and select the desired region and project.
  5. Locate the private zone to be deleted and click Delete under Operation.
  6. Click Yes to confirm the deletion.