Skip to content

Encrypt DNS lookups with DNS over HTTPS — via Mauro Huculak, Pureinfotech

Hidden settinglow riskNeeds adminWindows 11

Windows 11 can send DNS queries over HTTPS so the network you're on can't see or tamper with the sites you look up. It works out of the box with well-known public resolvers like Cloudflare, Google and Quad9.

Takes effect right away

The easy way

  1. Settings → Network & internet → Wi-Fi or Ethernet → your connection → DNS server assignment → Edit → Manual.
  2. Turn on IPv4 and enter a supported resolver (e.g. 1.1.1.1, 8.8.8.8 or 9.9.9.9). On current Windows 11 builds set DNS over HTTPS to On (automatic template) and turn off Fallback to plaintext if you want encryption only; some builds instead show a Preferred DNS encryption list with Encrypted only (DNS over HTTPS) and Encrypted preferred, unencrypted allowed. Save.
  3. To undo, set DNS server assignment back to Automatic (DHCP).

Command

Run in an administrator PowerShell / Terminal window.

Get-DnsClientDohServerAddress

Undo

# Read-only: lists the resolvers Windows knows support DoH. Nothing to undo.
Encrypted-only (fallback off) means no DNS at all if the server stops answering over HTTPS; allowing fallback silently drops back to plain DNS. Custom DNS replaces your router's, so local names and parental-control DNS may stop working, and encrypted DNS can bypass filtering DNS you set elsewhere. Windows 10 doesn't have this option. Menu wording varies between builds.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

dns over httpsdohencrypted dnsprivacy1.1.1.1

More in Networking

Flush the DNS cache — via Marc Abramowitz

Commandlow riskAdmin

If a website moved to a new server, or you changed DNS settings and some sites still won't load, your Mac may be holding on to old address lookups. Flushing the DNS cache makes it look them up fresh. It's a troubleshooting step, not a speed boost.

Run Apple's built-in internet speed test — via SS64

Commandlow risk

macOS has its own speed test in Terminal. Besides download and upload speed, it measures 'responsiveness' (round trips per minute while the line is busy), which explains why video calls stutter on a connection that looks fast.