Configure a DNS server

更新时间:
复制 MD 格式

A Domain Name System (DNS) server resolves internal domain names in an efficient and secure manner to ensure stable and reliable access to internal services. Based on a properly configured DNS server, you can centrally manage internal domain names to prevent issues such as service unavailability caused by external DNS faults or network jitters.

Scenarios

  • Custom DNS: Your business requires custom configurations for internal domain name resolution.

  • Internal service resolution: Your business runs in a virtual private cloud (VPC) and you want to use an internal DNS server to correctly route requests in Cloud-native API Gateway.

  • Hybrid cloud environment: You want to centrally manage internal and external DNS resolutions for your services.

Limits

You can configure up to five DNS servers.

Operation entry

The operation entry varies depending on the scenario:

Create a service

  1. Log on to the API Gateway console.

  2. In the left-side navigation pane, click Cloud-native API Gateway > Instance. In the top navigation bar, select a region.

  3. On the Instance page, click the target instance ID.

  4. In the left-side navigation pane, click Service. Then, click the Services tab.

  5. Click Create Service.

Edit a service

  1. Log on to the API Gateway console.

  2. In the left-side navigation pane, click Cloud-native API Gateway > Instance. In the top navigation bar, select a region.

  3. On the Instance page, click the target instance ID.

  4. In the left-side navigation pane, click Service. Then, click the Services tab.

  5. Find the service that you want to edit and click Edit in the Actions column.

Configure a DNS server

Note

Only DNS domain names are supported as the service source.

  1. Click More Settings and then Click to automatically specify DNS server IP addresses.

    When you enable internal DNS resolution, Alibaba Cloud automatically assigns an internal DNS server address to your VPC. image

  2. Click Add. You can also manually enter a DNS server address.

    image