Set up encrypted DNS on every platform
Short answer: the two easiest starts are Android’s Private DNS (type a hostname, done) and a provider’s signed profile on iPhone or Mac. On Windows 11 the DNS-over-HTTPS option lives in the network settings, with an extra step for less-known resolvers. Firefox and Chrome can do it per-browser, and a router can cover a whole household.
Before you start: pick a provider from our providers page. The examples below use Quad9; swap in the endpoint of your chosen provider.
Android (Private DNS)
Android 9 and later support encrypted DNS system-wide via “Private DNS”, which uses DoT and takes a hostname rather than a URL:
- Open Settings, then Network & internet (or Wi-Fi & network, depending on your phone).
- Tap Private DNS — you may need to expand “Advanced” first.
- Choose Private DNS provider hostname and enter
dns.quad9.net. - Save. To check it worked, some providers (such as Quad9, via its Connect app) offer a status check, or use a DNS-leak test site in your browser.
All apps and browsers on the phone now use the encrypted resolver.
Windows 11
Windows supports DNS-over-HTTPS for the whole system, but only for resolvers on Microsoft’s list of “known” DoH servers — by default Cloudflare, Google and Quad9:
- Open Settings, then Network & internet.
- Choose your connection type (Wi-Fi or Ethernet) and open your connected network’s properties.
- Beside DNS server assignment, choose Edit, then Manual.
- Turn on IPv4 and enter
9.9.9.9as preferred and149.112.112.112as alternate DNS server (add the IPv6 addresses too if you use IPv6). - In the dropdown beneath each address, set DNS over HTTPS to On (automatic template) or On (manual template).
- Save.
If your chosen provider is not recognised (the encryption dropdown stays greyed out), register
it once in PowerShell using Microsoft’s Add-DnsClientDohServerAddress command with the
provider’s IP address and DoH template, then repeat the steps above — see the Microsoft Learn article
in the sources for the exact syntax. Browser-level DNS (below) is the simpler route in that case.
iPhone, iPad and macOS (signed profiles)
Apple devices support encrypted DNS through configuration profiles. Apple does not provide a built-in screen for creating them, so download a signed profile from your provider — Quad9, AdGuard and Control D all publish signed iOS and macOS profiles, which show a “Verified” label:
- On the device, visit your provider’s setup page and download its iOS or macOS profile.
- Open Settings; a “Profile Downloaded” entry appears near the top. Tap it.
- Tap Install and follow the prompts (on Mac: System Settings → Profiles).
- Once installed, the encrypted resolver is used system-wide; select it in Settings → General → VPN & Device Management if prompted.
Lockdown Mode note: while Lockdown Mode is enabled, configuration profiles cannot be installed. You would need to turn Lockdown Mode off, install the profile, then turn it back on.
Firefox
Firefox has full DoH controls — but note it is not switched on by default in the UK. Mozilla has only rolled out default-on DoH in the United States, Canada, Russia and Ukraine, so UK users must enable it themselves:
- Open Settings (Menu → Settings), choose Privacy & Security.
- Scroll to DNS over HTTPS and set it to Max Protection (DoH always, with an error if the resolver fails) or Default Protection (DoH first, falls back to the system resolver — weaker, because a filter can intercept the fallback).
- Choose your provider from the list, or “Custom” and paste the DoH endpoint
(for Quad9:
https://dns.quad9.net/dns-query).
Firefox also uses ECH automatically where sites support it — see our ECH page.
Chrome (and Edge, Brave, other Chromium browsers)
Chrome’s setting is called Use secure DNS (Settings → Privacy and security → Security). Its default “automatic” mode has an honest caveat: Chrome only upgrades your lookups to encrypted DNS if the network’s current DNS provider is on its known-DoH list — otherwise everything stays unencrypted, silently. So choose a provider explicitly:
- Open Settings → Privacy and security → Security.
- Scroll to Use secure DNS and turn it on.
- Select With: and pick your provider from the dropdown (Cloudflare and Quad9 are listed), or choose the custom option and paste the DoH endpoint.
Remember this protects that browser only — other apps still use the system’s DNS.
Router level (covers every device)
Setting encrypted DNS on the router protects consoles, smart TVs and anything that cannot be configured individually. Ordinary ISP routers usually only offer plain DNS addresses, which is not encrypted DNS. Firmware that supports DoH/DoT includes OpenWrt (via the HTTPS DNS proxy packages) and OPNsense, both of which have official documentation for configuring encrypted upstream resolvers — see their docs for current steps. Note that browser-level settings can override the router for that browser, and iOS/macOS profiles or Android Private DNS override it per device; decide which layer you want in charge.
Check it worked
Open a site that your provider would normally filter (for example, a domain on your broadband filter’s block list) — if it loads where it used to show the ISP’s block page, your lookups are going elsewhere. A DNS-leak test site should show your chosen resolver, not your ISP’s.
What this does NOT protect you from
- Your ISP still sees destination IP addresses and (outside ECH-protected sites) the SNI domain — see the explainer.
- Managed work or school devices may have these settings locked or overridden by policy.
- IP-level and connection-level blocks are unaffected by encrypted DNS.
Sources and verification
Every factual claim on this page is registered and independently checked (two independent sources for legal, numeric and security claims). How this works: fact-checking. Spotted an error? Tell us.
Android 9 and later support DNS-over-TLS system-wide via the Private DNS setting (Settings, Network & internet, Private DNS), which takes a provider hostname such as dns.quad9.net.
- Privacy Guides — DNS Overview
- Quad9 Foundation — Service Addresses & Features
Windows only offers the DNS-over-HTTPS encryption dropdown for DNS servers on its built-in list of known DoH servers, which by default includes Cloudflare, Google and Quad9; other resolvers can be added with the Add-DnsClientDohServerAddress PowerShell command.
- Microsoft Learn — Secure DNS Client over HTTPS (DoH) on Windows
- Microsoft Learn — Add-DnsClientDohServerAddress (DnsClient module)
While Lockdown Mode is enabled on an iPhone, iPad or Mac, configuration profiles cannot be installed; a user who wants to install an encrypted-DNS profile must turn Lockdown Mode off, install the profile, then re-enable it.
- Apple — About Lockdown Mode
- Apple Newsroom — Apple expands commitment to protect users from mercenary spyware
iOS, iPadOS, tvOS and macOS support encrypted DNS natively via configuration profiles, and several providers (including Quad9, AdGuard and Control D) publish signed profiles; a signed profile shows a 'Verified' label because signing validates the profile's origin.
- Privacy Guides — DNS Overview
- Privacy Guides — DNS Resolvers
Firefox has enabled DNS-over-HTTPS by default only in the United States (2019), Canada (2021) and Russia and Ukraine (from March 2022); it is not turned on by default in the UK, where users must enable it themselves.
- Mozilla — About DNS over HTTPS
- Technical University of Munich (NET) — Analyzing Real-World DoH and ECH Adoption Using Mozilla Telemetry
Chrome's default 'Use secure DNS' behaviour is an auto-upgrade mechanism: it only upgrades lookups to encrypted DNS when the network's current DNS provider is one of the DoH-capable resolvers Chromium knows about; otherwise queries stay unencrypted, so choosing a specific provider is the reliable option.
- Chromium project — DNS over HTTPS (aka DoH)
- Privacy Guides — DNS Resolvers
Quad9's recommended service uses the addresses 9.9.9.9 and 149.112.112.112 (and IPv6 2620:fe::fe, 2620:fe::9), with DNS-over-HTTPS at dns.quad9.net/dns-query and DNS-over-TLS at tls://dns.quad9.net; malware blocking is included by default and DNSSEC validation is enabled on all endpoints.
- Quad9 Foundation — Service Addresses & Features
- Privacy Guides — DNS Resolvers