All Products
Search
Document Center

HTTPDNS:Configure the DoH service

Last Updated:Dec 08, 2025

1. Introduction

After you review the scenarios and access steps for DNS over HTTPS (DoH) in the DoH Access Guide, you can configure the service. This topic describes how to perform the following operations in the console:

  • Enable DoH

  • Obtain the access URL

  • Verify the access URL

2. Prerequisites

You have set the resolution scope for your domain names. For more information, see Add a domain name.

3. Enable DoH and get the access URL

  1. Log on to the EMAS console.

  2. In the navigation pane on the left, choose Connection Settings > Development Settings. Enable DoH and obtain the DoH link.

    Note
    • For billing, DoH resolutions are converted to HTTP resolutions. For more information, see Billing.

3. Verify the access URL

Use kdig to verify that DoH resolution works. The following example shows how to resolve www.aliyun.com:

image

Note

When you run the verification, replace $doh_host and $domain with your DoH link host and the domain name that you want to test.

Operations such as enabling or disabling DoH, modifying the domain name resolution scope, and managing blacklists or domain name lists may take up to 1 minute to take effect.

5. What to do next

After you configure the DoH service, you can use the DoH settings interface in your network library to replace the local DNS service and prevent DNS hijacking. Alternatively, you can call the DoH API directly to retrieve resolved IP addresses.