Help Center/ Elastic Cloud Server/ User Guide/ Self-Service O&M/ Configuring DNS Servers for ECSs
Updated on 2025-09-08 GMT+08:00

Configuring DNS Servers for ECSs

Scenarios

You can configure DNS servers for ECSs in one-click mode.

When you intend to access websites outside the Chinese mainland from ECSs located within the Chinese mainland, DNS servers can help mitigate issues such as slow cross-border network access, long latency, and unstable connections.

This section describes how to configure DNS servers for ECSs.

Constraints

  • Cloud Operations Center (COC) needs to be enabled and authorized.

    For IAM users, permissions for COC operations need to be granted. For details, see Configuring Custom Policies for ECS Self-Service O&M.

  • UniAgent must be installed. UniAgent is a unified data collection agent that supports script delivery and execution.

    If UniAgent is not installed on an ECS, the DNS server cannot be modified. For details about how to install UniAgent, see Installing UniAgent on an ECS.

  • DNS servers cannot be configured for ECSs in Creating state.

Procedure

  1. Log in to the ECS console and access the ECS list page.
  2. Locate the target ECS and choose More > View O&M and Monitoring > Configure DNS Server in the Operation column.
  3. (Optional) On the Enable COC and Grant Permissions page, read and agree to the service statement, and click Enable and Authorize.

    This page is displayed if COC is not enabled and authorized.

  4. On the Configure DNS Server page, set DNS server addresses for the ECS as instructed.

    A UniAgent is required for DNS server configuration. If a message is displayed indicating that the UniAgent is not installed or failed to be installed, install it by referring to Installing UniAgent on an ECS.

    If you select a non-Huawei Cloud DNS server, the system sets the Huawei Cloud DNS server as the alternative DNS server by default to prevent private network access failures.

    Figure 1 Configuring the DNS server
    • Using an existing DNS server address:

      In the DNS Server Address area, select the Huawei Cloud DNS or a non-Huawei Cloud DNS as the DNS server of the ECS.

    • Using a custom DNS server address:

      Click Custom DNS Server Address and set a preferred and an alternative DNS server address.

  5. Click OK to complete the DNS server configuration for the ECS.