Join our Newsletter — 33% off our NHI Course
Home› Guides› Private DNS on Phones and Home Networks Guide:…
Guide Network Security

Private DNS on Phones and Home Networks Guide: Turning On Encrypted DNS and Choosing a Resolver

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 11 November 2026 12 min read
On this page

Ordinary DNS lookups travel unencrypted, so anyone on the path, from a café Wi-Fi operator to a compromised home router, can read every site name a device looks up and can answer with a false address. Private DNS (Android's name for encrypted DNS) and the equivalent settings on iPhone, Windows, browsers and routers fix the transport by wrapping DNS in TLS, HTTPS or QUIC. They do not make the resolver itself trustworthy, so choosing the resolver matters as much as switching encryption on. This guide explains what each protocol does, how to turn encrypted DNS on for each platform, how strict and opportunistic modes behave, how to choose a resolver, and how to make it work alongside a home router, parental controls and VPNs. It is for security-minded individuals, people who look after a family's devices, and IT staff supporting home workers. For managed corporate fleets, see the Encrypted DNS Enterprise Guide.

Key takeaways

  • Encryption protects the path, not the destination. Encrypted DNS stops the local network and its operator reading or altering lookups, but the resolver you choose still sees every query.
  • Android has a built-in switch. Private DNS uses DNS over TLS; Automatic mode upgrades opportunistically, and entering a provider hostname forces all lookups to that resolver with no fallback.
  • iPhone needs a profile or an app. iOS and iPadOS 14 and later support encrypted DNS through a DNS Settings configuration profile or a DNS app, not a toggle in Settings.
  • Strict beats opportunistic. Opportunistic modes silently fall back to clear text; strict modes fail closed, which is safer but needs a reachable resolver.
  • Pick a resolver by its policy. Check log retention, whether it filters and discloses its block lists, DNSSEC validation and its transparency reporting before trusting it with your browsing history.

What encrypted DNS is and what it protects

Classic DNS uses UDP and TCP on port 53 in clear text. Three IETF standards encrypt the connection between a device and its recursive resolver:

ProtocolStandardTransport and portWhere you meet it
DNS over TLS (DoT)RFC 7858 (May 2016), usage profiles in RFC 8310 (March 2018)TCP port 853; must not use port 53Android Private DNS, routers, iOS profiles
DNS over HTTPS (DoH)RFC 8484 (October 2018)HTTPS, default port 443, configured with a URI templateBrowsers, Windows, iOS profiles
DNS over QUIC (DoQ)RFC 9250 (May 2022)UDP port 853; must not use UDP port 53Some resolvers and apps
  • What it stops: passive reading of lookups by the Wi-Fi operator or anyone on the path, and on-path tampering with answers, an adversary-in-the-middle technique (ATT&CK T1557).
  • What it does not stop: the resolver operator seeing your queries; the destination IP address being visible on the network; tracking by websites; malware that uses its own DNS. Google's Android announcement makes the same point: DNS over TLS covers DNS only, not other privacy risks.
  • Who still sees your lookups: whichever resolver you choose. Switching from your internet provider to a public resolver moves trust; it does not remove it.

Strict and opportunistic modes

RFC 8310 defines two profiles that explain most of the confusing behaviour on real devices.

ProfileBehaviourDevice examplesRisk
Opportunistic PrivacyUses encryption and authentication when available; may fall back to unauthenticated or clear-text DNS to get an answerAndroid Private DNS Automatic; Chrome secure DNS automatic mode; Windows "Encrypted preferred, unencrypted allowed"Silent downgrade by a hostile network
Strict PrivacyRequires an encrypted, authenticated connection; hard failure otherwise, no clear-text fallbackAndroid Private DNS with a provider hostname; Chrome with a custom provider; Windows "Encrypted only"Name resolution fails if the resolver is blocked or unreachable

For phones that move between untrusted networks, strict mode is the better default. When a network blocks it, the device shows no connectivity rather than quietly leaking lookups; Google's Android announcement notes the network is marked "No internet access" if the chosen server cannot be reached.

Turning it on: platform by platform

PlatformWhere the setting isProtocolNotes
Android 9 and laterSettings, search for "Private DNS" (under Network and internet on most devices); choose Off, Automatic or Private DNS provider hostnameDoTEnter a hostname, not an IP address. Applies to system DNS for all apps using system APIs. An active VPN uses its own DNS instead
Chrome on AndroidSettings, Privacy and security, Use secure DNSDoHOn in automatic mode by default with fallback; a custom provider does not fall back. Unavailable when the device is managed or parental controls are on
iPhone and iPad (iOS/iPadOS 14+)Install a DNS Settings profile (payload type com.apple.dnsSettings.managed) or a resolver's app; then Settings, General, VPN and Device ManagementDoH or DoTA manually installed profile also applies on cellular; one delivered by MDM applies only to managed Wi-Fi networks
iPhone with iCloud+iCloud Private RelayApple relay designEncrypts DNS records for Safari browsing so neither the network provider nor the first relay sees the site name; not available in all regions
Windows 11 and Windows Server 2022+Settings, Network and Internet, adapter, DNS server assignment, Edit; set Manual and choose the DNS encryption optionDoHEncryption is offered for resolvers on the known DoH server list; "Encrypted preferred" falls back without notification
FirefoxSettings, Privacy and Security, DNS over HTTPSDoHIn default mode Firefox disables DoH on networks that signal filtering through a canary domain or show parental controls; a manually chosen "always" setting ignores the signal
Home routerRouter admin page, WAN or DNS settings, if the firmware supports DoT or DoH forwardingDoT or DoH upstreamProtects lookups from the router to the resolver only; the hop from each device to the router stays clear text on your own Wi-Fi

On Windows the default known DoH server list (visible with Get-DnsClientDohServerAddress) includes 1.1.1.1 and 1.0.0.1, 8.8.8.8 and 8.8.4.4, and 9.9.9.9 and 149.112.112.112 with their IPv6 equivalents. Other resolvers can be added with Add-DnsClientDohServerAddress, setting -AllowFallbackToUdp $False for strict behaviour. Microsoft advises against requiring DoH on domain-joined machines because the Windows Server DNS service does not answer DoH and Active Directory depends on DNS.

See the Android Security and Privacy Settings Guide and the iPhone Security and Privacy Settings Guide for the rest of each platform's settings.

Choosing a resolver

Mozilla's Trusted Recursive Resolver policy is a useful public yardstick, because it sets written requirements that resolvers must meet before Firefox will offer them. Use it as a checklist for any provider, whether or not Firefox lists it.

CriterionWhat good looks likeWhere to check
Log retentionUser-identifying data kept only to operate the service and for no longer than 24 hours (the Mozilla requirement); longer retention only for aggregate dataProvider privacy notice
Data sharingNo selling, licensing or transfer of IP addresses, identifiers or query patterns to third parties except as required by lawPrivacy notice and terms
FilteringClear statement of whether the resolver blocks domains, with documented block lists; nonexistent domains answered with an accurate NXDOMAIN, not redirectedProvider documentation; choose a filtering or unfiltered endpoint deliberately
TransparencyAnnual transparency report on law enforcement requestsProvider website
EDNS Client SubnetNot sent to authoritative servers over unencrypted connections (Mozilla requirement); ideally not sent at all for privacyProvider documentation
DNSSEC validationThe resolver validates signed zones and refuses forged answersProvider documentation; see the DNSSEC Deployment Guide
Protocols and reachDoT hostname for Android, DoH template for browsers and Windows, both reachable from networks you useProvider setup pages
  • Privacy first: choose an unfiltered endpoint with short retention and a published transparency report.
  • Protection first: choose a resolver endpoint that blocks known malicious domains, which is the consumer equivalent of protective DNS. See the Protective DNS Guide.
  • Family devices: a family-filtering endpoint set as the Private DNS hostname gives filtering that follows the phone onto mobile data, which router-level filtering cannot. See the Parental Controls Guide.
  • Work devices: do not override the employer's resolver on a managed device; it may break internal names and will bypass security filtering.

Home networks: router, devices or both

A home network has two hops: device to router, and router to resolver. Router-level encrypted DNS protects the second hop for every device, including smart TVs and consoles that have no setting of their own. Device-level Private DNS protects both hops but only for that device, and it travels with phones onto other networks.

  • Do both where you can: configure the router to forward over DoT or DoH, and set Private DNS on phones and laptops that leave the house.
  • Expect devices to bypass the router: browsers with DoH and phones with Private DNS no longer use the router's resolver, so router-based filtering and logging only see what remains. Firefox looks for a canary domain signal on the network before enabling DoH in default mode.
  • Automatic upgrade from a known resolver: RFC 9462 Discovery of Designated Resolvers (November 2023) lets a client that knows only the resolver's IP query _dns.resolver.arpa to find its encrypted endpoint, and use it automatically only if the resolver's certificate contains the original IP address. For private addresses such as a home router, clients may use opportunistic discovery without that check.
  • A secure router still matters: an attacker who changes the router's DNS settings controls every device that relies on it. See the Securing Your Home Router Guide and the DNS Hijack Playbook.

How to implement

  1. Choose the resolver and endpoint using the criteria table, and note both its DoT hostname and its DoH URL.
  2. Start with one phone. On Android set Private DNS to the provider hostname; on iPhone install the provider's signed profile or app. Use the provider's test page, where offered, to confirm queries arrive encrypted.
  3. Test the edge cases: a hotel or café captive portal, your VPN, and any work app that resolves internal names. Captive portals may need Private DNS turned off briefly to sign in; turn it back on afterwards.
  4. Configure laptops and browsers. Prefer the operating system setting over per-browser settings so every application is covered, and choose the encrypted-only option where offered.
  5. Configure the router to forward upstream over DoT or DoH if its firmware supports it, and update the firmware first.
  6. Roll back cleanly if something breaks: set Android Private DNS to Automatic, remove the iOS profile under VPN and Device Management, or switch Windows back to Automatic (DHCP) DNS.
  7. Review twice a year: check the resolver's privacy notice for changes and confirm settings survived operating system updates.

Checking it works and measuring it

  • Provider test pages: many resolvers publish a page that reports whether your query reached them and over which protocol.
  • Router or firewall logs: if you run your own firewall, outbound UDP or TCP port 53 from a device that should be using Private DNS shows a fallback or an app with its own resolver; TCP port 853 shows DoT in use.
  • Windows: Get-DnsClientDohServerAddress lists DoH templates and whether fallback to UDP is allowed.
  • Android apps: apps that run their own DNS can check LinkProperties.isPrivateDnsActive(), per Google's guidance; those that ignore it can leak.

Useful measures for a household or a small team supporting home workers:

  • Share of devices with encrypted DNS in strict mode.
  • Share of devices whose resolver meets every criterion in the table.
  • Number of devices still sending clear-text port 53 traffic off the network.
  • Router firmware age and whether its DNS settings match the intended values at each check.

Common failure patterns

  • Leaving Automatic mode on and assuming protection. Opportunistic modes fall back to clear text without telling you.
  • Typing an IP address into Android Private DNS. The field needs a hostname so the certificate can be validated.
  • Expecting a VPN and Private DNS to stack. When a VPN is active its DNS settings apply, as Quad9's Android setup guide notes; configure the resolver inside the VPN app instead.
  • Choosing a resolver by speed alone. The fastest resolver may log more and keep it longer.
  • Breaking parental controls by accident. Device or browser DoH bypasses router filtering; set the family filtering endpoint on the device itself.
  • Overriding DNS on a work device. This breaks internal names and protective DNS, and may break policy.

Framework mapping

FrameworkReferenceRelevance
NIST CSF 2.0PR.DS-02Protecting data in transit, including name resolution traffic
NIST SP 800-53 Rev. 5SC-8, SC-21Transmission confidentiality and integrity; secure recursive or caching resolution
CIS Controls v8.1Control 9 (Email and Web Browser Protections)Use of DNS filtering services
MITRE ATT&CKT1557Adversary-in-the-middle tampering that encrypted DNS helps prevent

Practitioner checklist

  • Choose a resolver against the retention, sharing, filtering, transparency and DNSSEC criteria.
  • Set Android Private DNS to the provider hostname, not Automatic.
  • Install a signed DNS Settings profile or the resolver's app on iPhones and iPads.
  • Use the operating system's encrypted-only option on laptops.
  • Configure the router for encrypted upstream DNS and keep its firmware current.
  • Configure DNS inside the VPN app when a VPN is used.
  • Put family filtering on the device, not only the router.
  • Leave managed work devices on the employer's resolver.

Standards and references

Related NHI Mgmt Group resources: Encrypted DNS Enterprise Guide · DNS Security Guide · Securing Your Home Router Guide · Public Wi-Fi Safety Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 11 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.