Reference · Privacy and personal data
Encrypted DNS: check DNS over HTTPS and DNS over TLS on port 853
Check whether DNS lookups leave encrypted: pktmon on Windows 11, resolvectl status and DNSOverTLS= on Linux, a DNS Settings profile on macOS, secure DNS in Chrome, Edge and Firefox, and new-domain blocking in NextDNS and Control D.
| Target artifact | The DNS lookups a computer and its browsers send, and whether they leave encrypted, as DNS over HTTPS (DoH) on TCP port 443 or DNS over TLS (DoT) on TCP port 853, or as plain text on port 53. |
|---|---|
| Default behaviour | Windows 11 encrypts DNS only for servers an administrator sets up; systemd-resolved's DNSOverTLS= defaults to no; macOS encrypts system DNS once a DNS Settings profile is installed. Chrome uses DoH when the system's DNS provider is known to support it, with fallback; Firefox turns DoH on for desktop users in Canada and the United States, with fallback. |
| Safe state | Each computer and browser sends lookups only to a resolver you chose, encrypted, with fallback to plain text off where the setting exists; a capture of port 53 shows no lookups leaving. |
| Check on Windows | as Administrator, pktmon filter add -p 53, then pktmon start --capture --comp nics --log-mode real-time while you browse; Ctrl+C stops it |
| Check on Linux | resolvectl status |
| Check on macOS | System Settings, General, Device Management lists a DNS Settings profile (Privacy & Security, Profiles on macOS 14) |
| Check in Chrome | chrome://settings/security, Use secure DNS under Advanced |
| Check in Firefox | Settings, Privacy & Security, DNS over HTTPS |
| Fix on Windows | Settings, Network & internet, your connection, Edit next to DNS server assignment, Manual: DNS over HTTPS to On (automatic template), Fallback to plaintext off |
| Fix on Linux | DNSOverTLS=yes and DNS=1.1.1.1#cloudflare-dns.com in /etc/systemd/resolved.conf.d/dns-over-tls.conf, then sudo systemctl restart systemd-resolved |
| Fix in browsers | choose a secure DNS provider, or leave the browser on the system's encrypted resolver; on managed Edge, set DnsOverHttpsMode and DnsOverHttpsTemplates |
DoH on port 443, DoT on port 853
Both encrypt the lookup between your computer and the resolver, so the network you are on cannot read or change it. The resolver still sees every name you look up.
- DNS over TLS (RFC 7858, 2016) has port 853 to itself: servers must listen there and plain DNS must never use it. A network can recognize it and block it, and with fallback off, lookups then fail instead of leaving in plain text.
- DNS over HTTPS (RFC 8484, 2018) runs over
https://on port 443 and can share a connection with other HTTPS traffic, which makes it harder to single out.
Windows 11
Follow the path in the specification table. On the page of an Ethernet or Wi-Fi connection, DNS server assignment is a row of its own with an Edit button; Microsoft's networking blog reaches it through Hardware properties. Under Manual, turn on IPv4, enter Preferred DNS and Alternate DNS, and repeat for IPv6 if the connection uses it. Windows 10 does not have the setting.
Microsoft's support article reaches the same DNS boxes through Edit next to IP assignment, in a dialog that also has the IP address, Subnet mask and Gateway boxes; for Wi-Fi it picks the network under Manage known networks. Cloudflare's setup guide and a Pureinfotech walkthrough by Mauro Huculak, updated on 7 May 2024, use the DNS server assignment row; the walkthrough shows the DNS over HTTPS list there.
- On (automatic template) uses the DoH address Windows holds for that server;
Get-DnsClientDohServerAddresslists them, including Cloudflare1.1.1.1, Google8.8.8.8and Quad99.9.9.9. On (manual template) takes an address you type. - Fallback to plaintext on sends a lookup unencrypted when HTTPS fails; off, the lookup fails instead.
Check that nothing leaves in plain text
pktmon filter remove
pktmon filter add -p 53
pktmon start --capture --comp nics --log-mode real-timeBrowse a few sites. Packets to your DNS server on port 53 are plain-text lookups; with fallback off there should be none. Press Ctrl+C, then run pktmon filter remove.
DNS over TLS, command line only
Microsoft's netsh dnsclient reference for Windows 11 documents DoT options, and its Windows security book says the DNS client supports DoT. Settings offers only DoH, and as of 9 November 2026 Microsoft has announced DoT only for Windows Insider builds 25158 and later, in July 2022. Test it on one computer first.
netsh dnsclient add encryption server=SERVER_IP dothost=SERVER_NAME:853 autoupgrade=yes udpfallback=no
netsh dnsclient add global dot=yes
ipconfig /flushdns
netsh dnsclient show globalSERVER_IP must also be the connection's DNS server, and SERVER_NAME the name on its certificate. If netsh dnsclient show encryption already lists the server, use set encryption.
Linux with systemd-resolved
systemd-resolved encrypts with DoT only; its manual, up to systemd 262, has no DoH setting. Use a drop-in file, as the shipped resolved.conf recommends, with your provider's addresses and DoT name:
sudo mkdir -p /etc/systemd/resolved.conf.d
sudo nano /etc/systemd/resolved.conf.d/dns-over-tls.conf[Resolve]
DNS=1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com
DNSOverTLS=yessudo systemctl restart systemd-resolved
resolvectl statusresolvectl status shows | Meaning |
|---|---|
+DNSOverTLS on the Protocols line | DoT required |
DNSOverTLS=opportunistic | DoT tried, plain DNS allowed |
-DNSOverTLS | Plain DNS |
- The name after
#is checked against the server's certificate. Withyes, lookups to a server without DoT fail; the manual warns thatopportunisticcan be downgraded and cannot authenticate the server. - Servers your network hands out are queried alongside these, and the global setting applies to them unless the connection sets its own.
macOS
macOS 11 and later encrypt system DNS through a configuration profile with the DNS Settings payload, com.apple.dnsSettings.managed, which names the protocol, HTTPS or TLS, and the server. To install one by hand, open the file, then go to System Settings, General, Device Management, double-click the profile under Downloaded, check the server it names and click Install. Remove it there to undo it. Apple says a DNS profile installed by device management applies only to managed Wi-Fi networks.
Chrome, Edge and Firefox
A browser set to its own secure DNS provider sends lookups there, past any filtering service set on the computer.
Chrome
Under Use secure DNS, Select DNS provider offers OS default (when available), a list of providers, and Add custom DNS service provider.
Google said in 2020 that Chrome turns secure DNS off when it finds any enterprise policy, and the setting shows "This setting is disabled on managed browsers". In a test of Chrome 153 on Linux on 9 November 2026, policies unrelated to DNS were enough, and the DnsOverHttpsMode policy turned it back on. A computer with a Chrome policy, such as the one in Guide 6, needs that policy too.
Edge
On managed computers, DnsOverHttpsMode secure sends only DoH and fails on error, and automatic falls back to plain DNS; secure needs DnsOverHttpsTemplates. Microsoft notes that a managed device without the mode policy sends no DoH queries.
if (-not (Test-Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge')) { New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge' -Force | Out-Null }
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge' -Name DnsOverHttpsMode -Type String -Value 'secure'
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge' -Name DnsOverHttpsTemplates -Type String -Value 'YOUR_DOH_ADDRESS'Confirm at edge://policy.
Firefox
Under DNS over HTTPS, click Advanced settings. Mozilla began turning DoH on by default for desktop users in the United States in February 2020 and in Canada from mid-2021, with fallback.
- Default protection stays off when Firefox detects parental controls, an enterprise policy or a VPN.
- Max Protection always uses secure DNS and warns when it cannot connect. Off uses the system's resolver.
Block newly registered domains
Two filtering DNS services that accept DoH and DoT can block recently registered domains and any domain you name:
- NextDNS lists Newly Registered Domains (NRDs) among a profile's Security settings; its Denylist blocks domains you add.
- Control D has a native filter, New Domains, in a profile's Filters. Its Custom Rules, under the profile's Edit, block a domain and its subdomains with Block; Bypass overrides a filter.
Either can block a remote-support service you do not use, such as the Quick Assist address. A new-domain block also stops legitimate new sites; allow those one at a time.
Related guides and lookups
Sources
- IETF: RFC 7858, DNS over TLS
- IETF: RFC 8484, DNS over HTTPS
- Microsoft Support: change TCP/IP settings
- Microsoft Learn: secure DNS client over HTTPS
- Cloudflare: set up 1.1.1.1 on Windows, updated 1 May 2026
- Pureinfotech, Mauro Huculak: how to enable DNS over HTTPS on Windows 11, updated 7 May 2024
- Microsoft Learn: netsh dnsclient
- Microsoft Learn: Windows security book, network security
- Microsoft Tech Community: DNS over TLS available to Windows Insiders
- Microsoft Learn: pktmon start
- systemd: resolved.conf
- Apple Developer: DNSSettings payload
- Apple: configuration profiles on Mac
- Chromium Blog: secure DNS, September 2020
- Microsoft Learn: Edge DnsOverHttpsMode
- Mozilla Support: DNS over HTTPS protection levels
- Mozilla Support: Firefox DNS over HTTPS
- Mozilla: DoH by default for US users, 25 February 2020
- Mozilla: DoH by default rollout in Canada, 8 July 2021
- NextDNS: API documentation
- Control D: filters
- Control D: custom rules