All Products
Search
Document Center

Microservices Engine:Configure a DNS server

Last Updated:Jun 17, 2025

You can configure a Domain Name System (DNS) server for your services to resolve internal domain names efficiently and securely. This ensures stable and reliable access to internal services. After you configure a DNS server, you can centrally manage internal domain names to prevent service unavailability caused by external DNS failures or network performance fluctuation.

Scenarios

  • Custom DNS: Your business requires custom configurations for internal DNS servers.

  • 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 gateways.

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

Limits

You can configure up to five DNS servers.

Operation entry

The operation entry varies based on scenarios.

Add a service

  1. Log on to the MSE console, and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Cloud-native Gateway > Gateways.

  3. On the Gateways page, click the ID of the desired gateway.

  4. In the left-side navigation pane, click Routes. On the page that appears, click the Services tab.

  5. Click Add Service.

Manage services

  1. Log on to the MSE console, and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Cloud-native Gateway > Gateways.

  3. On the Gateways page, click the ID of the desired gateway.

  4. In the left-side navigation pane, click Routes. On the page that appears, click the Services tab.

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

Configure a DNS server

Note

Currently, only DNS domain names are supported as service sources.

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

    When you activate Alibaba Cloud DNS, Alibaba Cloud automatically assigns internal DNS server addresses to your VPC.image

  2. Click Add and enter a DNS server address.

    image