All Products
Search
Document Center

HTTPDNS:Configure the DoH service

Last Updated:Mar 19, 2026

1. Introduction

You have reviewed the DoH Integration Guide to understand the use cases and integration steps for DNS over HTTPS (DoH). Next, you configure the service. This topic walks you through the following tasks in the console:

  • Enable DoH

  • Obtain the integration URL

  • Verify the integration URL

2. Prerequisites

You have already set the domain name resolution scope as described in the Domain Name Integration topic.

3. Enable DoH and get the integration URL

  1. Log on to the EMAS Management Console.

  2. In the left navigation pane, choose Integration Configuration > Development Configuration. Then enable DoH and obtain the DoH URL.

    image

    Note
    • For billing, each DoH query counts as one HTTP-based DNS query. For more information, see Billing.

3. Verify the access URL

To verify that DoH resolution works, resolve www.aliyun.com using kdig:

image

Note

When verifying, replace $doh_host and $domain with your DoH host and the domain name you are testing.

Changes such as enabling or disabling DoH, updating the domain name resolution scope, adding or removing domains from the blacklist, or adding or removing domains from the domain list take effect within one minute.

4. What to do next

After you configure the DoH service, you can use a networking library that supports DoH to replace local DNS and prevent DNS hijacking. Or you can call the DoH API directly to retrieve resolved IP addresses.