Blog

Private DNS on Android: what each setting hides

We tested each Android Private DNS mode. Off and Automatic put site names in plain DNS; a hostname or our VPN kept them out. A dead hostname stopped new pages.

Published December 2, 2026 · 21 minutes read

Key takeaways

  • 10 of 10 site names crossed our test network in plain DNS with Private DNS Off and no VPN, in 3 of 3 runs.
  • Automatic stayed plain on our network, which offered no encryption: 5, 7 and 9 of 10 names went out readable, the rest likely cached.
  • A provider hostname left 0 plain lookups on the network in 4 of 4 runs; an unreachable one let 0 of 10 new names resolve.
  • 0 of 10 site names reached our test network in plain DNS with ForestVPN at Protected, in 12 of 12 runs, any Private DNS setting.
  • Our app said Protected while an unreachable Private DNS hostname stopped every site: our status reads the tunnel, not Android's name lookups.
On this page (13)

On 2 December 2026 we asked an Android 15 emulator for ten websites per run, 28 runs in all, with Private DNS set to Off, Automatic or a provider's hostname and our VPN off or on. With Off, the network read all ten site names in plain DNS lookups; with a hostname, it read none in DNS.

Private DNS is the Android setting that encrypts the phone's name lookups, with DNS over TLS (DoT) on port 853 for most providers. Off means plain text. Automatic encrypts only if the network's own resolver offers it, which ours did not, so it stayed plain. A hostname sends every lookup, encrypted, to the one provider you name, and if that provider can't be reached, no new name resolves.

On a network with no encrypted resolver, Automatic hid nothing, which its definition allows. The result we didn’t expect was our own: when we broke the hostname on purpose, our app still showed Protected while every page failed.

Below are the numbers per setting, why our status missed the broken hostname, and how to read your own phone.

  • 10 of 10site names in plain DNS, Private DNS Off, no VPN (3 of 3 runs)
  • 0 of 10site names in plain DNS, provider hostname set, no VPN (4 of 4 runs)
  • 0 of 10site names in plain DNS with our app at Protected, any setting (12 of 12 runs)
  • 0 of 10sites that answered with an unreachable hostname while our app said Protected (3 of 3 runs)
How we recorded the emulator
Date
2 December 2026, about 13:05 to 14:12 UTC
Device
Google’s Android 15 (API 35) x86_64 phone image in Android emulator 37.2.13.0, headless, wiped before the run, on a virtual machine on our test network with a German route. It has a virtual Wi-Fi interface (wlan0) and a wired one (eth0); its resolver address is 10.0.2.3, which the emulator forwards to the virtual machine
Network resolver
dnsmasq on the virtual machine, forwarding every question in plain text, keeping no cache of its own and logging each name it was asked. It offers no encrypted DNS, so Automatic had nothing to upgrade to
App
Our published Android app, the file on our download page that day (its checksum matched the published one), Free plan, no account, connected to our Frankfurt exit
Settings
Off, Automatic, a well-known public provider’s hostname (named in our records, not here), and a hostname we pointed at 203.0.113.7, a documentation address where nothing answers. Each with our app off and at Protected, three runs each, plus four runs with ten names never requested before
Per run
Ten public websites, one HTTP request each (HEAD / on port 80), so every request began with a lookup through Android’s resolver. Answered means an HTTP status line came back, not that a page rendered. Plain HTTP names the site in its Host header; we counted DNS only
Capture
tcpdump 4.99.6 on the virtual machine’s uplink (its link to the internet, where a network operator would sit; UDP 53 and TCP 853) and on the hop to the resolver, plus Android’s own network record from adb shell dumpsys connectivity, filtered to its DNS fields. Raw captures were deleted after counting because they held DNS answers; we kept outgoing packets and names only
A real phone; Android versions other than 15; mobile data; a network whose resolver offers encrypted DNS; what travels inside the tunnel; DNS over HTTPS on port 443; IPv6-only networks; a misspelt hostname; timing of any kind; our app’s diagnosis card; the phone’s DNS cache, which we did not clear between runs.

In the tables, app off means installed but not connected, and at Protected means the ring on our main screen read Protected before we requested the ten sites.

What does Private DNS do on Android?

Private DNS picks who answers your phone's name lookups, and whether the question is encrypted on its way. Google announced it for Android P, which became Android 9 (Android Developers Blog), and you choose Off, Automatic or a provider's hostname. On Google’s own builds it sits under Settings, Network & internet, Private DNS.

An app that wants a website first asks Android's resolver (the DNS resolver module, the system part that answers every app’s lookups) for the address, and that question is DNS. By default it goes to whichever resolver the network handed out, unencrypted, on port 53.

  1. DNS over TLS carries the question inside TLS on TCP port 853. RFC 7858 puts the gain as removing the chance for eavesdroppers and on-path tampering with the query.
  2. RFC 8310 defines two usage profiles. Under Opportunistic Privacy the client may carry on unencrypted. Under Strict Privacy, when an encrypted and authenticated connection is not available, "a hard failure occurs".
  3. Android uses both. Automatic is the opportunistic profile (the emulator's settings store keeps it under the name opportunistic), and a hostname is the strict one.
  4. Android's developer reference describes a set server name as strict mode: lookups go to that host alone, and only when its certificate checks out.
  5. Android 11 and later, kept current by Google Play system updates, use DNS over HTTP/3 instead of DoT for a short list of well-known providers, the Google Online Security Blog said in July 2022. The hostname we tested connected on port 853; our capture did not record port 443.
SettingKept asWho receives the lookupWhen encryption can't be had
OffoffThe network's resolverNever attempted
AutomaticopportunisticThe network's resolverThe lookup goes out in plain text
HostnamehostnameThe provider you namedThe lookup fails, with no fallback

What did the network read in each Private DNS mode?

In the six runs with our app off and Off or Automatic set, the network saw site names in plain DNS: all ten in each Off run, five to nine in Automatic. A hostname left none in DNS. Once our app was at Protected, none of the 12 runs put a single site name in plain DNS.

Times are UTC. Because this is an emulator on a virtual machine, every figure below is a count or a destination, never a timing.

SettingOur appRunsNames read per run, of 10Port 853 connectionsSites answered per run, of 10
Offoff310, 10, 10None in runs 1 and 3; run 2 shows one left over from the previous run10, 10, 10
Automaticoff35, 7, 9None10, 9, 10
Provider hostnameoff40, 0, 0, 0One a run, to the provider, completed10, 10, 10, 10
Unreachable hostnameoff3, fresh names0, 0, 01 or 2 a run, unanswered0, 0, 0
Offat Protected30, 0, 0Nothing10, 10, 10
Automaticat Protected30, 0, 0One a run, never answered, while connecting10, 10, 10
Provider hostnameat Protected30, 0, 03, 4 and 2 completed connections to the provider, none while pages were requested10, 10, 10
Unreachable hostnameat Protected30, 0, 0Two a run, never answered, none during the page requests0, 0, 0

One name or more

Off, no VPNRun 1: 10, meets the targetRun 2: 10, meets the targetRun 3: 10, meets the target
Automatic, no VPNRun 1: 5, meets the targetRun 2: 7, meets the targetRun 3: 9, meets the target
A hostname, no VPNWorking, run 1: 0, below the targetWorking, run 2: 0, below the targetWorking, run 3: 0, below the targetWorking, new names: 0, below the targetUnreachable, new names 1: 0, below the targetUnreachable, new names 2: 0, below the targetUnreachable, new names 3: 0, below the target
Our app at Protected, any settingOff, run 1: 0, below the targetOff, run 2: 0, below the targetOff, run 3: 0, below the targetAutomatic, run 1: 0, below the targetAutomatic, run 2: 0, below the targetAutomatic, run 3: 0, below the targetHostname, run 1: 0, below the targetHostname, run 2: 0, below the targetHostname, run 3: 0, below the targetUnreachable, run 1: 0, below the targetUnreachable, run 2: 0, below the targetUnreachable, run 3: 0, below the target
Site names our test network read in plain DNS, of 10, one dot per run, 2 December 2026: only Off and Automatic without a VPN put any there.
Show the data
GroupMeasurementValue, site namesNote
Off, no VPNRun 110
Off, no VPNRun 210
Off, no VPNRun 310
Automatic, no VPNRun 15
Automatic, no VPNRun 27
Automatic, no VPNRun 39
A hostname, no VPNWorking, run 10
A hostname, no VPNWorking, run 20
A hostname, no VPNWorking, run 30
A hostname, no VPNWorking, new names0
A hostname, no VPNUnreachable, new names 10
A hostname, no VPNUnreachable, new names 20
A hostname, no VPNUnreachable, new names 30
Our app at Protected, any settingOff, run 10
Our app at Protected, any settingOff, run 20
Our app at Protected, any settingOff, run 30
Our app at Protected, any settingAutomatic, run 10
Our app at Protected, any settingAutomatic, run 20
Our app at Protected, any settingAutomatic, run 30
Our app at Protected, any settingHostname, run 10
Our app at Protected, any settingHostname, run 20
Our app at Protected, any settingHostname, run 30
Our app at Protected, any settingUnreachable, run 10
Our app at Protected, any settingUnreachable, run 20
Our app at Protected, any settingUnreachable, run 30

The first six questions of the first Off run show what the network received (names only, times UTC):

13:05:08.884016 IP	AAAA? example.com.
13:05:08.885986 IP	A? example.com.
13:05:11.902479 IP	AAAA? wikipedia.org.
13:05:11.904683 IP	A? wikipedia.org.
13:05:16.906337 IP	AAAA? wikipedia.org.
13:05:17.551451 IP	AAAA? mozilla.org.

Each name normally goes out as two questions, one for an IPv4 address (A) and one for an IPv6 address (AAAA). A slow answer can add a repeat (wikipedia.org above), and a few names went out only once, so the ten sites account for 21, 19 and 18 questions in the three Off runs. The run totals, 23, 19 and 26, add Android’s own background names (a connectivity check, Google services) in runs 1 and 3.

Only the first two rows put a site name in front of the network’s resolver in plain DNS; in every other row none of the ten names reached it. The other plain questions, from Android and from our app, are counted further down.

Every run is one line below, including the three dead-hostname runs that reused earlier site names, which the cache skewed and we kept out of the table above.

All 28 runs, one line each
SettingAppRunQuestions on the network, whole runOf those, during page requestsSite-name questions among themPort 853Answered
Offoff1232321none10
Offoff2191919one to 203.0.113.7, left over, unanswered10
Offoff3262618none10
Offat Protected12600none10
Offat Protected21300none10
Offat Protected31200none10
Automaticoff1888none10
Automaticoff2191913none9
Automaticoff3161616none10
Automaticat Protected11100one to the tunnel's resolver, unanswered10
Automaticat Protected2700one to the tunnel's resolver, unanswered10
Automaticat Protected3900one to the tunnel's resolver, unanswered10
Hostnameoff1000one to the provider, completed10
Hostnameoff2000one to the provider, completed10
Hostnameoff3000one to the provider, completed10
Hostnameoffnew names000one to the provider, completed10
Hostnameat Protected1600three to the provider, completed10
Hostnameat Protected2500four to the provider, completed10
Hostnameat Protected3300two to the provider, completed10
Unreachableoff1, first list, cache-affected330one to 203.0.113.7, unanswered4
Unreachableoff2, first list, cache-affected000two to 203.0.113.7, unanswered4
Unreachableoff3, first list, cache-affected000two to 203.0.113.7, unanswered6
Unreachableoffnew names 1110one to 203.0.113.7, unanswered0
Unreachableoffnew names 2000two to 203.0.113.7, unanswered0
Unreachableoffnew names 3000two to 203.0.113.7, unanswered0
Unreachableat Protected1300two to 203.0.113.7, unanswered0
Unreachableat Protected2300two to 203.0.113.7, unanswered0
Unreachableat Protected3300two to 203.0.113.7, unanswered0

The new-name runs used other site lists, so their site-name columns read zero by construction; for them the whole-run count is the evidence, and the one packet in the first is the unreachable hostname itself.

What does Automatic Private DNS actually do?

Automatic aims to encrypt lookups to the network's own resolver and drops to plain text when that resolver has no encryption to offer. Ours had none, so everything the emulator sent out was readable.

Android’s reference, the RFC and our capture document four steps:

  1. Android takes the resolver address the network gave it (here 10.0.2.3, the emulator's own).
  2. With no server name and Private DNS active, the developer reference calls the state "opportunistic mode": DNS over TLS is used only if that resolver offers it.
  3. Otherwise it keeps asking on port 53, which the opportunistic profile of RFC 8310 allows.
  4. Android's own network record agrees: across all six Automatic runs, dumpsys connectivity listed no Private DNS line on any interface, whether our app was off or at Protected.

Automatic, no VPN (our test network)

  1. An app asks for a name
  2. Android asks the network’s resolver it offered no encryption
  3. Plain question on port 53
  4. The network reads the name

Automatic, our app at Protected

  1. An app asks for a name
  2. Android asks the tunnel’s resolver
  3. The question goes to the tunnel’s network
  4. The network reads no name in DNS
Who answers a lookup in Automatic mode

Did Android attempt TLS before falling back? Our recording can't say. The emulator's resolver is a virtual address, and a probe to it may never reach the uplink we watched. Before the recorded runs we saw hints of such probes, but we can’t show them.

Automatic showed the network 5, 7 and 9 names, not ten. The missing names never reached the resolver, and their sites still answered, so the phone most likely answered from its own DNS cache. The Off run a few minutes earlier had requested the same names, and we never cleared it. One site in run 2 timed out for reasons the run doesn't record.

On a network like ours, Automatic and Off send the same plain questions; the phone’s cache, most likely, made the counts differ.

What changes when you set a Private DNS hostname?

A hostname sends every lookup, encrypted, to the provider and leaves the network's resolver out. Four runs with our app off: no plain DNS on the network, one port-853 connection to the provider each, ten sites answered each time.

  1. It looks up the provider's own hostname once, to learn where to connect. That one question is plain: with our app connected, the hostname went out on port 53.
  2. It opens TLS on port 853 to the address it got, and checks the certificate against the hostname.
  3. It records the provider as validated on that network. AOSP prints that list as ValidatedPrivateDnsAddresses.
  4. From then on every app's lookup rides that connection. With our app off, each run showed one port-853 connection to the provider and not one plain lookup, and in the run with ten names never requested before, all ten sites still answered.

Android’s record for the Wi-Fi and wired interfaces in those runs showed Private DNS in use with the provider’s hostname, followed by the provider addresses Android had validated (the output is further down).

Set a hostname and the provider takes over the job the network's resolver had. It now receives every name.

Why do pages stop loading after setting a Private DNS hostname?

A hostname is strict: when the provider stays silent on port 853, the phone asks nobody else. We aimed a hostname at an address where nothing listens and ran three times with fresh names: 0 of 10 sites answered every time.

  1. Android looked up the hostname and got 203.0.113.7.
  2. It opened TCP to port 853. Nothing came back: 8 to 10 SYN packets a connection, no reply.
  3. RFC 8310 rules out the retreat: a client "MUST NOT fall back from Strict Privacy to Opportunistic Privacy during the resolution of a given query".
  4. Each request died before it began. The test tool printed No address associated with hostname for every site.
  5. Android still listed Private DNS as on, with the hostname but no validated addresses.

Three of the SYN lines from a run with our app at Protected, with our address replaced by a documentation address and the TCP options trimmed:

13:31:33.788957 IP 192.0.2.10.56944 > 203.0.113.7.853: Flags [S], seq 2717505935, win 64860, ... length 0
13:31:34.852868 IP 192.0.2.10.56944 > 203.0.113.7.853: Flags [S], seq 2717505935, win 64860, ... length 0
13:31:35.875867 IP 192.0.2.10.56944 > 203.0.113.7.853: Flags [S], seq 2717505935, win 64860, ... length 0

Sequence number and source port never change: it is one connection attempt, repeated. Android's own strings file has a notification for this case, reading "Private DNS server cannot be accessed" (AOSP strings). Our emulator had no screen, so we never saw whether it appeared.

The failure looked patchy. In three runs that reused earlier names, 4, 4 and 6 of 10 sites still answered, although the network saw no lookup for those sites and no encrypted handshake finished. Recently visited sites can keep loading, so a dead hostname passes for a flaky network. The phone's DNS cache is our suspect; we never tested it.

To undo it, correct the hostname or set Private DNS back to Automatic or Off. If addresses work and names don't, this check for a local setting is the place to start.

Does Private DNS still apply when a VPN is on?

With our app at Protected, Android kept the hostname we had set and applied it on the tunnel's network too. Off and Automatic left lookups to the tunnel’s own resolver, the only one Android listed on the tunnel. In all 12 runs the network read zero site names in plain DNS.

Android’s own record and our capture point the same way. In each hostname run at Protected, the tunnel interface listed the provider’s hostname plus validated addresses, whereas Off and Automatic listed just the tunnel’s resolver. On the network, not one site name went out in plain DNS across the 12 runs, and no port-853 connection opened during the page requests. Every site answered in the nine runs with Off, Automatic or a working hostname; none did with the unreachable one.

What the capture cannot see is the inside of the tunnel. Android's record and the answers fit encrypted lookups reaching the provider through the tunnel, but our capture sits outside it, so we have not watched that happen. On the tunnel Android validated the provider’s IPv6 addresses too, which it never validated on the emulator’s Wi-Fi, so that check most likely went through the tunnel.

So with a hostname set, Android sends the tunnel’s lookups to that provider rather than to the resolver our app installs, which is also where the app’s own DNS setting applies. We didn’t look inside the tunnel to confirm it. What the DNS line in a WireGuard config does on Linux is in our WireGuard DNS post.

Some plain questions still reached the network with our app on. These are whole-run counts, and none landed during the page requests:

SettingQuestions per runWhat they were forSite names
Off26, 13, 12Android's connectivity check, Google services, a certificate check, our app's own server names0
Automatic11, 7, 9Those kinds again0
Provider hostname6, 5, 3The connectivity check and the provider's own hostname0
Unreachable hostname3, 3, 3The connectivity check and the unreachable hostname0

A name asked for in both IPv4 and IPv6 counts twice. These questions came around connecting and disconnecting; the table counts whole runs, so we don't split them by moment.

One finding is about our own app. With our app at Protected, every Off and Automatic run sent at least one of our server names in plain text around the connect; the six hostname runs sent none. Our app must find its servers before a tunnel exists, so it asks the network's resolver first (the Linux measurement of that window). Under a hostname we saw none of them in plain text.

A DNS leak test with a hostname set will list that provider; our leak-test post covers it.

Why did our app say Protected while no page loaded?

Our status reads the tunnel, and the tunnel was healthy: our app’s own probes went out through it and came back. The lookups broke next to it, in Android's resolver, which our status never inspects.

Our status missed a dead hostname

We set Private DNS to an unreachable hostname and our app said Protected in 3 of 3 runs, with 0 of 10 sites answering.

  1. Protected shows only after a round of our app’s own probes has gone out through the tunnel and come back, and it stays until a round fails. The status page lists the eight verdicts behind it, all read from the tunnel’s own counters.
  2. Those probes are sent by our tunnel engine itself, not through Android’s resolver, so a dead Private DNS hostname can’t fail them, and a quiet tunnel never counts against Protected. The same blind spot turns up on a WireGuard link where addresses work and names don’t.
  3. Our diagnosis asks Android one yes-or-no question about Private DNS: LinkProperties.isPrivateDnsActive.
  4. The answer was yes for the working hostname and for the dead one, so it can't tell them apart.
  5. The list that does differ, the validated servers, is a @SystemApi in AOSP that an ordinary app can't read.

Our check, in code (Kotlin, trimmed):

/** `LinkProperties.isPrivateDnsActive` only ... this app has no way to tell "off" from
 * "auto" (both mean "not actively enforcing"), so both collapse to `"off"` ... */
private fun privateDnsWord(linkProperties: LinkProperties): String =
    if (linkProperties.isPrivateDnsActive) "strict" else "off"

The function turns any active Private DNS into "strict". Yet Android's reference calls a null server name with Private DNS active opportunistic, so on a network with an encrypting resolver Automatic would read as active and our diagnosis would label it strict. We haven't run that case. Android’s public getPrivateDnsServerName() would separate the two (a name means strict), and another part of our app already reads it; the diagnosis doesn’t.

Our help page says the diagnosis warns when it is strict. No diagnosis card came out of this run, so we can neither confirm nor deny that.

What can a network still see with Private DNS on?

The network still sees the address of each server you connect to and, for most sites, the site name repeated in the TLS handshake. Encrypting the lookup leaves both in the open; DNS over HTTPS vs a VPN covers why, for the browser's encrypted DNS.

Even the encrypted lookups give a little away: RFC 7858 says it does not "specify ideas to resist known traffic analysis or side-channel leaks", meaning what the timing and size of encrypted messages reveal.

We kept only ports 53 and 853 in our capture, so we have no count of handshake names on Android. Our hotel Wi-Fi capture, a Linux machine with a browser, found 10 of 12 names in the handshake with encrypted DNS on.

Our own test requests show the gap in its plainest form. Each was plain HTTP on port 80, which carries the site name in a Host header, so without a VPN every name that resolved also crossed the network there, whatever Private DNS was set to. We counted DNS only.

The provider learns more than the network: it hears every name you look up and, without a VPN, sees your network address. You choose who that is: in our app the DNS setting puts the operator's name on screen. Browser DNS over HTTPS (DoH) does the same job on port 443; DNS over HTTPS vs a VPN sets it against a VPN.

On Android we captured neither handshake names nor addresses, so we make no claim about them.

Which Private DNS setting should you pick?

Without a VPN, only a hostname kept every name out of plain DNS on our network, and it costs you sending every name to that provider. Automatic is as good as the network's resolver, and Off suits troubleshooting.

Keep Automatic if you want nothing to break

  • It falls back to plain DNS instead of failing a lookup.
  • On a network such as ours it hid nothing: the network read 5, 7 and 9 names in plain DNS.

Set a hostname if you trust one provider more than the networks you join

  • In 4 of 4 runs, no plain lookup reached the network.
  • A provider that stops answering blocks every new name: 0 of 10 in 3 of 3 runs.

Connect a VPN as well

  • With our app at Protected, 0 of 10 names reached the network in plain DNS, in every setting.
  • A hostname still applies on the tunnel’s network, so set one only if you want that provider answering instead of the DNS choice in our app.

Which one fits depends on who you would sooner trust with your lookups: the network you joined, or a single provider. We tested one well-known public provider and compared none, so this post ranks no provider.

How can you check which Private DNS mode your phone is using?

The Private DNS screen on the phone shows the mode. From a computer, adb shell settings get global private_dns_mode prints off, opportunistic or hostname (or null if the setting was never changed, and Android uses its default), and dumpsys connectivity says whether Android validated a provider on each network.

What we ran, with the hostname redacted:

adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier <provider hostname>
adb shell settings get global private_dns_mode
adb shell dumpsys connectivity | grep -o "InterfaceName: [a-z0-9]*\|PrivateDns: [a-z]* PrivateDnsServerName: [^ ]*\|PrivateDns: [a-z]*\|DnsAddresses: \[[^]]*\]"

And the output from a hostname run with our app at Protected (provider hostname and addresses redacted, wired interface trimmed):

InterfaceName: wlan0
DnsAddresses: [ /10.0.2.3 ]
PrivateDns: true PrivateDnsServerName: <provider hostname>
DnsAddresses: [<provider addresses>]
InterfaceName: tun0
DnsAddresses: [ /100.64.0.53 ]
PrivateDns: true PrivateDnsServerName: <provider hostname>
DnsAddresses: [<provider addresses, IPv6 and IPv4>]

Our filter started mid-word, so two field names come out short. The first PrivateDns: true is Android’s UsePrivateDns: true, and the second DnsAddresses list on an interface is ValidatedPrivateDnsAddresses: the provider addresses Android checked on that network. On your own phone, use the full names (we did not rerun the emulator with this filter):

adb shell dumpsys connectivity | grep -oE "InterfaceName: [a-z0-9]+|UsePrivateDns: true|PrivateDnsServerName: [^ ]+|ValidatedPrivateDnsAddresses: \[[^]]*\]"

In the unreachable runs the same lines appear with the hostname, but with no validated addresses. In Off and Automatic there is no Private DNS line at all, on any network, app off or at Protected.

What did we get wrong while recording it?

Our grep pattern started mid-word, and it fooled us for a while. AOSP's LinkProperties.toString() prints UsePrivateDns: true, PrivateDnsServerName: <name> and ValidatedPrivateDnsAddresses: [...]. Our filter matched the first as PrivateDns: true and the third as an extra DnsAddresses line, so we opened the source to learn what that line was. ValidatedPrivateDnsAddresses is the one field in Android’s record that separates a working hostname from a dead one, and an ordinary app can't read it.

The cache cost us twice. Android's DNS cache wasn't cleared between runs, which most likely explains Automatic’s 5, 7 and 9 names and the 4, 4 and 6 sites that answered in the first three dead-hostname runs.

A port-853 connection left over from the previous run's dead hostname showed up in Off run 2, so afterwards our test script cleared the hostname for Off and Automatic. And some runs were thrown out because a first-run screen wasn't accepted; none of them is counted.

What did this run teach us?

  1. Automatic keeps lookups private only if the network's resolver does: ours offered nothing, so everything that left was readable.
  2. Our tunnel status is blind to a lookup dying beside it: our app said Protected in 3 of 3 runs while 0 of 10 sites answered.
  3. Clear the cache between runs. We skipped it, and it most likely skewed two results: Automatic's 5, 7 and 9 names, and the 4, 4 and 6 sites that answered with a dead hostname.

What don't we know yet about Private DNS?

  1. A network whose resolver offers DNS over TLS. Ours did not, so Automatic had nothing to upgrade to and we never saw it read as active, the case where our diagnosis would say strict.
  2. A puzzle we can't explain: with our app connecting in Automatic, a TCP connection to port 853 on 100.64.0.53, the tunnel's own resolver address, left on the physical network instead of inside the tunnel, in every run. It sent 10 SYN packets, got no reply and carried no name.
  3. The inside of the tunnel. Android's record says a hostname applies there, but our capture is outside it.
  4. How the app found its own servers under a dead hostname. We saw no plain lookup of our names and no completed port-853 connection, and still it got to Protected. Two explanations fit and we separated neither: our privacy policy describes an encrypted fallback for when the network's DNS fails (our code sends it as DNS over HTTPS on port 443, which this capture did not record), or the app reused addresses it already held, because we never reset it between runs.
  5. Whether Android's "Private DNS server cannot be accessed" notice appeared; the emulator had no screen.
  6. Whether switching the mode clears the DNS cache. Automatic answered names the Off run had asked for minutes before.
  7. Everything else, untested: real phones, other Android versions, mobile data, IPv6-only networks, a misspelt hostname, and apps left out of the tunnel by split tunneling, which would presumably use the phone's own network and so its Private DNS.

Sites failing after a Private DNS change? Our help page on Always-on VPN, battery and Private DNS lists what to send support.

Questions and answers

How do I set or turn off Private DNS on Android?

On Google's own Android builds: Settings, then Network & internet, then Private DNS. Pick Off, Automatic, or enter a provider's hostname and save. Other makers put it elsewhere; searching Settings for Private DNS finds it.

Can I type a DNS server's IP address into Private DNS?

The field takes a hostname, because Android checks the provider's TLS certificate against that name before it sends a lookup. Providers that offer DNS over TLS publish a hostname for it. We didn't test typing an address.

Does Private DNS slow down browsing?

We didn't time it: an emulator on a virtual machine gives no trustworthy timing. What changes is the path. In our capture a run with a hostname showed one encrypted connection to the provider and no plain questions, instead of two plain questions per name (one for IPv4, one for IPv6) to the network's resolver.

Does Private DNS hide my IP address from websites?

No. It changes who answers your lookups and encrypts them on the way. The sites you open still see the address your connection comes from. A VPN changes that address; Private DNS doesn't.

Sources

  1. RFC 7858: Specification for DNS over Transport Layer Security (TLS) (read December 2, 2026)
  2. Google Online Security Blog: DNS-over-HTTP/3 in Android (read December 2, 2026)
  3. RFC 8310: Usage Profiles for DNS over TLS and DNS over DTLS (read December 2, 2026)
  4. Android Developers: LinkProperties (read December 2, 2026)
  5. Android Developers Blog: DNS over TLS support in Android P Developer Preview (read December 2, 2026)
  6. AOSP: LinkProperties.java (Connectivity module) (read December 2, 2026)
  7. AOSP: core strings.xml (read December 2, 2026)
  8. Android Open Source Project: DNS resolver module (read December 2, 2026)

How this was made

AI-assisted drafting from our own captures of an Android emulator on 2 December 2026, checked against the counts and names we kept, with automated and editorial review.

All posts

Back to top

Ask us anything