All Products
Search
Document Center

API Gateway:Configure a DNS server

Last Updated:May 30, 2025

A Domain Name System (DNS) server resolves internal domain names efficiently and securely to ensure stable and reliable access to internal services. With 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: When backend services are located within a VPC, API Gateway uses internal DNS to correctly route requests.

  • 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 platforms

  1. Log on to the AI Gateway console.

  2. In the left-side navigation pane, click Instance. In the top navigation bar, select a region.

  3. On the Instance page, click the ID of the instance that you want to manage.

  4. In the left-side navigation tree, click Service.

  5. Based on different scenario requirements, you can use one of the following operation platforms:

    • Click Create Service.

    • Click Edit in the Actions column of the service you want to modify.

Configure a DNS server

  1. Click More Settings and Click to automatically specify DNS Server IP Addresses.

    When you activate the internal DNS resolution service, Alibaba Cloud automatically assigns an internal DNS resolution endpoint to your VPC.image

  2. Click Add to manually specify DNS server IP addresses.

    image