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
Log on to the EMAS Management Console.
In the left navigation pane, choose Integration Configuration > Development Configuration. Then enable DoH and obtain the DoH URL.
NoteFor 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:

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.
Option 1: Apply DoH to a networking library or browser
Option 2: Call the DoH API directly