Abstract
DNS over HTTPS (DoH) enhances user privacy by encrypting DNS queries within standard HTTPS traffic on Port 443. However, this integration makes DoH services difficult to distinguish from regular web traffic, complicating internet measurement and security research. This paper introduces E-DoH, a high-efficiency probing tool designed to discover and analyze the global DoH ecosystem. By implementing a novel wildcard probing mechanism and optimizing protocol negotiation, E-DoH identifies nearly double the number of DoH services found by previous state-of-the-art methods while significantly reducing traffic overhead and increasing scanning speed.
Introduction
The Domain Name System (DNS) is a foundational component of internet infrastructure, yet its traditional unencrypted nature exposes users to surveillance and hijacking. DNS over HTTPS (DoH) addresses these vulnerabilities by wrapping queries in HTTPS. While beneficial for privacy, DoH presents a challenge for researchers: because it shares Port 443 with regular web traffic, simple port scanning is insufficient for detection.
Previous detection efforts relied on inefficient "brute-force" probing, opening multiple connections to test various TLS versions and URL paths, leading to high traffic volume and incomplete results. As shown in the comparison below, earlier methods often struggled with efficiency or lacked comprehensive DoH support.
Methodology
E-DoH introduces three key innovations to streamline DoH discovery:
1. Wildcard Probing Mechanism
Instead of generic queries, E-DoH requests unique subdomains (e.g., target-ip.test.com). By controlling the authoritative nameserver for test.com with a wildcard record (*.test.com -> 127.0.0.1), researchers can track which resolver eventually queries their server. This confirms service correctness and maps resolver dependencies in one step.
2. Dynamic Protocol Negotiation
E-DoH reuses a single TLS connection for multiple probes. It utilizes the Application-Layer Protocol Negotiation (ALPN) field to establish the HTTP version and then dynamically tests various paths (e.g., /dns-query or /resolver) within that session, avoiding the overhead of repeated handshakes.
3. High-Concurrency Implementation
Developed in Golang, the tool uses goroutines to manage thousands of simultaneous probes efficiently, ensuring high throughput while avoiding resource exhaustion.
Results and Analysis
The evaluation of E-DoH across the IPv4 space and curated datasets yielded significant insights:
- Efficiency and Scalability: E-DoH is 80% faster than previous Python-based tools and reduces traffic volume by 80% to 96%.
- Discovery: The tool identified approximately 46,000 potential DoH services, nearly doubling the ~26,000 found in prior studies.
- Ecosystem Centralization: A critical finding is that 92% of discovered services are "forwarding" resolvers. These services act as intermediaries, passing requests to a few major recursive providers like Google and Cloudflare. This highlights a significant centralization risk; a failure at a major provider would impact thousands of downstream services.
- Protocol Adoption: Despite RFC 8484 recommendations for TLS 1.3 and HTTP/2, nearly 50% of detected hosts still utilize older protocols like TLS 1.2.
Conclusion
E-DoH provides a powerful lens into the expanding DoH landscape, revealing a complex and centralized ecosystem. While highly effective for public services, the tool's proactive nature is limited by non-standard URL paths or authenticated subdomains. Future research will explore combining active probing with passive traffic analysis to uncover these "stealth" services and extend the wildcard mechanism to other encrypted protocols like DNS over QUIC (DoQ).
Summary updated