Updated on 2022-01-25 GMT+08:00

Step 1: Create a VPC Endpoint for Connecting to DNS

Scenarios

This section describes how to create a VPC endpoint for accessing a DNS server, in order to forward requests of resolving OBS domain names.

Prerequisites

The required VPC endpoint service already exists.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the required region and project.
  3. Choose Service List > Networking > VPC Endpoint.
  1. On the VPC Endpoints page, click Create VPC Endpoint.

    The Create VPC Endpoint page is displayed.

  2. Set the required parameters.
    Table 1 Required parameters

    Parameter

    Description

    Region

    Specifies the region where the VPC endpoint is located.

    Resources in different regions cannot communicate with each other over internal networks. Select the nearest region for lower network latency and faster access to resources.

    Service Category

    There are two options: Cloud services or Find a service by name.

    • Cloud services: Select this value if the target VPC endpoint service is a cloud service.
    • Find a service by name: Select this value if the target VPC endpoint service is a private service of your own.

    Example: Cloud services

    Service List

    This parameter is available only when you select Cloud services for Service Category.

    The VPC endpoint service has been created by operations people and you can use it without having to perform the creation operation.

    Select the VPC endpoint service for DNS.

    Private Domain Name

    If you want to access a VPC endpoint using a domain name, select Create a Private Domain Name when creating a VPC endpoint. After the VPC endpoint is created, you can access it using the domain name.

    This parameter can only be configured for VPC endpoints of the interface type, and its setting depends on the type of target VPC endpoint services:

    • For the gateway type, this parameter is unavailable.
    • For the interface type, this parameter is optional.

    VPC

    Specifies the VPC where the VPC endpoint is located.

    Subnet

    This parameter is available only when you create a VPC endpoint for connecting to an interface VPC endpoint service.

    Specifies the subnet where the VPC endpoint is located.

    Tag

    This parameter is optional.

    Specifies the VPC endpoint tag, which consists of a key and a value. You can add a maximum of 10 tags to each VPC endpoint.

    Tag keys and values must meet requirements listed in Table 2.

    Table 2 Tag requirements for VPC endpoints

    Parameter

    Requirement

    Tag key

    • Cannot be left blank.
    • Must be unique for each resource.
    • Can contain a maximum of 36 Unicode characters.
    • Cannot start or end with a space or contain special characters =*<>\,|/

    Tag value

    • Cannot be left blank.
    • Can contain a maximum of 43 Unicode characters.
    • Cannot start or end with a space or contain special characters =*<>\,|/
  3. Confirm the specifications and click Create Now.
    • If all of the specifications are correct, click Submit.
    • If any of the specifications are incorrect, click Previous to return to the previous page and modify the parameters as needed, and click Submit.
  4. Click Back to VPC Endpoint List after the task is submitted.

    If the status of the VPC endpoint changes to Accepted, the VPC endpoint for connecting to the VPC endpoint service for DNS is created.

  5. In the VPC endpoint list, click before the target VPC endpoint to view its details.

    After a VPC endpoint for accessing interface VPC endpoint services is created, a private IP address is generated together with a private domain name if you select Create a Private Domain Name during creation.