Skip to content

DNS over HTTPS (DoH) and what it changes for cPanel-hosted zones

DoH does not change what your authoritative server publishes. It does change which resolver answers your users — sometimes bypassing your local resolver and split-horizon entirely.

A customer reports their corporate DNS override (used for internal-only hostnames and split-horizon DNS) stopped working when they upgraded to a new Firefox. The internal hostname intranet.example.com no longer resolves to the LAN IP — it resolves to the external IP, which is the public website. Nothing changed on the cPanel server. The change is at the browser, which started bypassing the OS resolver and going directly to a public DoH service.

What’s happening

DNS over HTTPS (DoH) tunnels DNS queries over HTTPS to a remote resolver. Browser DoH (Firefox’s DoH, Chrome’s secure DNS) sends queries to Cloudflare’s 1.1.1.1, Google’s 8.8.8.8, or another DoH provider — bypassing the operating system’s resolver. The OS-level DNS settings (DHCP-provided, corporate VPN-pushed, /etc/resolv.conf on Linux) are ignored.

This doesn’t change what your authoritative cPanel nameservers serve. It does change who’s asking. Specifically:

  • Split-horizon DNS — where internal users get LAN IPs and external users get public IPs for the same name — breaks if internal users start using a public DoH resolver. The DoH resolver only sees the public-facing authoritative nameservers and serves the external answer.
  • Internal-only zones (a corporate corp.example.local zone served by a private resolver) become unreachable from DoH-enabled browsers — DoH resolvers don’t know about the private zone and return NXDOMAIN.
  • Operator-managed /etc/hosts entries on user laptops still work — DoH is at the browser, not the OS. But DHCP-pushed resolver settings and VPN DNS resolvers stop being honoured.

cPanel-hosted zones are unaffected from the publishing side, but customer reports of “my site looks different from home than from the office” sometimes trace back to DoH bypassing the office resolver.

How to verify

Confirm what resolver a client is actually using:

# Linux/macOS
dig +short example.com
nslookup example.com
scutil --dns | grep -i nameserver

# Windows
Resolve-DnsName example.com
ipconfig /displaydns

Compare to what the browser sees. Firefox’s about:networking#dns page lists what the browser resolved each name to.

To check whether a browser is using DoH:

chrome://net-internals/#dns
about:networking#dns (Firefox)

Both show the resolver type. If it says “DOH” or “Secure DNS”, the browser is bypassing the OS resolver.

What to do

For the cPanel side, very little — you can’t control what resolver users pick. But you can avoid building infrastructure that breaks when users hit your zones via DoH:

  1. Avoid split-horizon DNS for public-facing names. If app.example.com should be reachable on the LAN at a private IP and on the internet at a public IP, build it so the public IP works from inside the LAN too (NAT loopback or hairpin) and publish only the public IP. One IP, one answer, regardless of resolver.
  2. For genuinely internal-only names, use a different domain entirely (example.internal or your corporate .local). Public DoH resolvers will return NXDOMAIN — that’s fine, those names should never have a public answer.
  3. Document for customers that VPN-pushed DNS may not work in browsers with DoH enabled. The mitigation is to disable browser DoH or configure the VPN client to push DoH-aware overrides (some commercial VPN clients do this).
  4. For corporate compliance, the IT team can publish a “canary” domain (use-application-dns.net for Firefox) with an explicit NXDOMAIN — Firefox disables its DoH when the canary returns NXDOMAIN, deferring to the OS resolver. This is documented in Firefox’s enterprise deployment guide.
  5. For monitoring, if customers complain about “intermittent DNS issues” that you can’t reproduce, ask which device and which network. A laptop on home Wi-Fi with browser DoH is a different DNS path than the same laptop on the office network.

If you operate a recursive resolver for customers (cPanel hosts have BIND but typically don’t expose recursion to outside clients), DoH-aware customers may want a DoH endpoint. cPanel doesn’t ship one; running a DoH gateway (doh-proxy, pdns-recursor with DoH) is a separate engineering project.

Stack Harbor advises on DNS architecture including DoH considerations as part of deployment management.