DNSPod’s GM DoH, the first Chinese DNS‑over‑HTTPS service to employ national SM2 cryptographic algorithms and certificates, upgrades the traditional TLS handshake by encrypting the pre‑master secret with SM2 keys, thereby filling a critical gap in China’s secure networking infrastructure and enhancing national network security.
This article explains why HttpDNS is used to improve DNS resolution for a WinInet‑based installer, compares two implementation schemes, and details a Windows API Hook solution—including inline hook techniques, detours usage, and custom GetAddrInfoEx handling—to achieve transparent, secure domain resolution on Windows clients.