A 5-second stall on each client data flight, measured in our lab: the server finished the handshake a few milliseconds after the client had given up, 8 times out of 8.
What the phone is telling you
Both lines are Android's own strings, from the Connectivity module (packages/modules/Connectivity, ServiceConnectivityResources/res/values/strings.xml). The title depends on the network: on mobile data it is mobile_no_internet, "Mobile network has no internet access"; on Wi-Fi it is "<network name> has no internet access". The second line, private_dns_broken_detailed, is the same on both. NetworkNotificationManager picks the pair when the notification type is PRIVATE_DNS_BROKEN - Android's Private DNS validation failed on that network.
Android's Private DNS is DNS over TLS on port 853 (RFC 7858). So the question is not "is the resolver up" but "what happens to a TLS handshake on this particular network". How DoT compares with the other encrypted transports is covered in DoH vs DoT vs DNSCrypt vs DoQ.
TCP connected is not TLS connected
A DoT query costs three exchanges before an answer can come back:
- TCP handshake: SYN, SYN-ACK, ACK. Three small packets, no data. After this the socket is ESTABLISHED.
- TLS 1.3 ClientHello, answered by the server's flight (ServerHello through Finished).
- Client Finished, with the DNS query right behind it, answered by the DNS response.
The first data the client ever sends is the ClientHello. If the path delivers small packets but holds or drops data segments, step 1 succeeds and step 2 never completes. Both ends then sit on a healthy-looking ESTABLISHED connection that carries nothing. The client's socket shows its ClientHello still in the send queue, unacknowledged; the server's socket shows an open connection on which nothing has been read.
TLS 1.3 (RFC 8446) needs two client flights to get through before a DoT client can read an answer, not one. If each is held, the cost is paid twice.
Reproduced: a stall on data segments only
We built this on a test VPS in two isolated network namespaces with no route anywhere else: a client, and a minimal DoT test server of our own that answers every A query with 192.0.2.1. A tc filter on the client's interface delayed only TCP segments carrying data - SYN, bare ACKs and FINs passed untouched - by 0, 5, 15 and 30 seconds. The client was q, with its query timeout raised to 75 s so every query could finish. Eight queries per row.
| Stall per client data flight | Answered | Median time to answer | Range |
|---|---|---|---|
| 0 s | 8/8 | 0.054 s | 0.053-0.057 s |
| 5 s | 8/8 | 10.053 s | 10.053-10.056 s |
| 15 s | 8/8 | 30.055 s | 30.053-30.057 s |
| 30 s | 8/8 | 60.056 s | 60.053-60.060 s |
Time to answer is exactly twice the stall, to within 8 ms: the ClientHello waits once, the Finished-plus-query waits again. The server's own log agrees - its handshakes completed 10.003, 30.003 and 60.003 s after accept.
So a 5-second stall per flight is already a 10-second query, and q's default timeout is 10 s (its help reads "Query timeout (default: 10s)"). We ran the 5-second row again at that default, eight times. All 8 failed, at 10.012-10.028 s, each with timeout after 10s. The test server's log shows all 8 handshakes completed, each 10.002-10.004 s after the connection was accepted. q starts its 10 s timer before it dials, so the timer had run out at least 2 ms before each handshake finished. (An earlier version of this paragraph said the handshakes finished about 10 ms before the client gave up. That compared the server's clock, which starts at accept, with our wrapper's, which starts before the client process launches.) The connection did its job; the client had already decided it had failed.
What this rig cannot show. The delayed packet sits in the client's own queue, so the kernel never declares it lost. During one 15-second stall the client's counters showed 6 retransmission timeouts, 11 retransmissions skipped because the original was still queued (TCPSpuriousRtxHostQueues), and 1 actually sent. A real radio link that drops the packet would produce retransmissions on the wire instead. The rig models a held flight, not a lost one.
Who gives up first
The stall is only a failure because somebody has a timer. On the Android side, the defaults in AOSP's DNS resolver (packages/modules/DnsResolver, main at 4d70e9e, read on 1 December 2026) are:
- DoT connect and handshake: kDotConnectTimeoutMs = 127 * 1000, commented as "consistent with TCP connect timeout", overridable per device by the dot_connect_timeout_ms flag (floor 1 s).
- DoT query: kDotQueryTimeoutMs = -1, no limit by default.
- Idle connection: kIdleTimeout, 20 s.
These are source defaults. A device can run with the flags set differently, and we have not measured a phone, so we do not claim what yours uses. What the source does show is that Android itself is patient; on a stalled path, the app waiting for the answer, or the server, may well give up first.
Random loss: slow, rarely broken
Stalls are one failure mode; plain packet loss is the other. We measured that too, from the same VPS through a namespace with symmetric random loss (tc netem on the namespace's own link only), against Cloudflare (1.1.1.1), Quad9 (9.9.9.9) and our own resolver, on 29 and 30 November 2026. One query per connection, at least 2 s apart, 30 queries per transport and loss level, client q. The table counts queries that took longer than 1 s, with unanswered queries in brackets:
| Resolver | Loss | DoH3 | DoQ | DoH (HTTP/2) | DoT |
|---|---|---|---|---|---|
| Cloudflare | 2% | 0 (0) | - | 0 (0) | 4 (0) |
| Cloudflare | 5% | 0 (0) | - | 4 (0) | 3 (0) |
| Cloudflare | 10% | 1 (0) | - | 8 (0) | 10 (0) |
| Quad9 | 2% | 0 (0) | 0 (0) | 0 (0) | 1 (0) |
| Quad9 | 5% | 2 (0) | 2 (0) | 4 (0) | 2 (0) |
| Quad9 | 10% | 3 (0) | 4 (0) | 4 (0) | 7 (0) |
| dnsdoh.art | 2% | 0 (0) | 1 (0) | 2 (0) | 1 (0) |
| dnsdoh.art | 5% | 1 (0) | 2 (0) | 4 (0) | 3 (0) |
| dnsdoh.art | 10% | 7 (0) | 10 (0) | 9 (0) | 10 (1) |
Cloudflare has no DoQ column because 1.1.1.1 does not answer DoQ: three attempts on 1 December 2026 each ended in timeout: no recent network activity, while Quad9's DoQ answered from the same machine. At 0% loss, every query in every cell answered within 1 s, apart from one Quad9 DoT query that took 3.391 s with no emulated loss at all - real-path noise, not the lab.
Read the 1 s bar with distance in mind. Our resolver answers from a single unicast address far from the test client, while Cloudflare and Quad9 answer from nearby anycast sites. The same cold DoT query, run on our server itself, takes 0.031 s, so the 0.365 s no-loss median is round trips across the path, not time spent in the resolver - and it leaves our queries less headroom under the same 1 s line.
What the numbers say, and what they do not:
- The median barely moves. At 10% loss the median to Cloudflare and Quad9 stayed between 0.056 and 0.085 s for 11 of 13 transport and key-exchange variants; the two exceptions sat at 0.263 and 0.264 s. A DNS exchange is a handful of packets; most queries simply lose none.
- The cost is in the tail, and the tail has a shape. Slow queries cluster at the no-loss time plus about one second: in the first public run, 19 of the 27 DoT queries slower than 1 s took no more than 1.12 s; to our resolver, where the no-loss median is 0.365 s, they bunch at 1.25-1.5 s. For TCP that second has a specific source. A lost SYN or SYN-ACK waits for the initial retransmission timeout, which RFC 6298 sets at 1 second. A lost data segment - the ClientHello, or the Finished - is resent on a timer computed from the measured round trip, and Linux floors that at 200 ms, so it costs a fraction of a second. The +1 s cluster is therefore consistent with most slow DoT and DoH queries having lost a TCP handshake packet, not their TLS data. That is arithmetic on the timers, not something we captured packet by packet.
- For QUIC, the same second needs another explanation. RFC 9002 starts from a 333 ms initial RTT, which puts the first probe timeout near one second - but our client does not use that default. q v0.19.12 is built on quic-go v0.59.0, whose DefaultInitialRTT is 100 ms and whose first probe timeout before any RTT sample is 2 * DefaultInitialRTT, 200 ms. A lost client Initial should cost about 0.2 s. For our own resolver there is a candidate: both of its QUIC stacks keep RFC 9002's default. nginx 1.31.10, which serves our DoH3, sets NGX_QUIC_INITIAL_RTT to 333 ms and the initial variance to half that; quiche, under our DoQ, has DEFAULT_INITIAL_RTT at 333 ms with the same initial variance, and our DoQ server does not override it. Before the first acknowledgement, either one waits 333 + 4 x 166.5, about 999 ms, before resending a lost server flight. That fits the cluster - read from the source, not captured - and it says nothing about Cloudflare's and Quad9's stacks, which we have not seen. For them the second stays unexplained.
- Hard failures are rare. Across 2,520 queries at 0-10% loss, 5 went unanswered. Four were DoT queries that hit the client's 10 s timeout (three to the public resolvers, one to ours); the fifth, DoQ to Quad9 at 2% loss, failed after 5.3 s, and we did not keep the client's error output, so we cannot say why. The DoT failure to our resolver died during TCP or TLS setup: the query never reached the DNS server. Neither end captured that connection, so we cannot say which packet was lost.
- DoH3 had fewer slow queries than DoT on all three servers - and that is within chance. Three out of three in the same direction happens one time in eight with no real effect at all, and two of the gaps are small (3 vs 7 to Quad9, 7 vs 10 to us). Only Cloudflare's 1 vs 10 stands out, and one server is one server. At 30 queries per cell, we do not claim DoH3 is more robust to loss.
Hypotheses we measured and discarded
"The post-quantum ClientHello makes it worse." With X25519MLKEM768 the ClientHello is about 1,500 bytes and needs two TCP segments (or two QUIC Initial packets); with plain X25519 it is 267 bytes and fits in one. Two packets that must both arrive should fail more often under random loss. We ran every server both ways at the same loss levels. Queries slower than 1 s at 10% loss, 30 each:
| Resolver | DoQ hybrid | DoQ X25519 | DoT hybrid | DoT X25519 |
|---|---|---|---|---|
| Cloudflare | - | - | 8 | 6 |
| Quad9 | 5 | 4 | 5 | 8 |
| dnsdoh.art | 6 | 12 | 13 | 9 |
Hybrid was slower in 3 of 5 comparisons and faster in 2, in both directions by margins that 30 queries cannot separate. We found no consistent effect. A stall holds the whole flight regardless of how many segments it has, so in the stall case the size does not matter either. What the hybrid key exchange is and why it is the default is explained in post-quantum key exchange explained.
"QUIC is immune." DoQ to our resolver had 10 slow queries out of 30 at 10% loss - the same as DoT. QUIC retransmits on its own timers, over UDP, and a lossy path is lossy for UDP too.
Check it on your own connection
Linux. While a DoT query hangs, look at the socket:
$ ss -tin dst 194.180.189.33
# replace the address with your resolver'sA stalled handshake, from our 15-second stall run (client side, trimmed):
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 1495 10.99.0.2:36618 10.99.0.1:853
ts sack cubic wscale:7,7 rto:1632 backoff:3 mss:1448 cwnd:1
bytes_sent:1495 bytes_acked:1 segs_out:4 segs_in:1
unacked:2 lost:2 ...ESTAB with a non-zero Send-Q and bytes_acked:1 means: TCP is up, the ClientHello (1,495 bytes here) has gone out, and the server has acknowledged nothing beyond the SYN. backoff:3 is the retransmission timer having doubled three times. A healthy connection shows Send-Q 0 and bytes_acked equal to bytes_sent.
This sample comes from our lab, where the held packet sat in the client's own queue, so the kernel mostly skipped resending it. On a real lossy path you will also see the resends: a non-zero retrans: field on the same line, and the same bytes repeated in a capture.
What this signature proves, and what it does not. It proves the path is carrying the connection but not the data. It does not say why. A radio link dropping packets produces it; so does a network operator's filter that lets the TCP handshake through and then holds or discards a ClientHello for port 853 or a particular server name. From the client's socket the two look identical. If the pattern follows one network - one carrier, one hotel Wi-Fi - and not your signal strength, suspect the network, not the radio.
To see it on the wire:
$ sudo tcpdump -ni any 'tcp port 853'The pattern is a completed SYN / SYN-ACK / ACK, then about 1,500 bytes of data from the client - in one segment or two, depending on the key exchange and on whether the capture sees the packet before or after segmentation offload - repeated, or followed by silence.
Windows. First check what your Windows actually does - it may not be DoT at all. On Windows 11 26H2 (build 26300.10075), netsh dns show global prints:
PS> netsh dns show global
DoH settings : enabled
DoT settings : enabledYet with our resolver set as the adapter's DNS server, and no encryption entry configured for it (netsh dns show encryption server=194.180.189.33 printed nothing), that machine did not use DoT. It asked our server for _dns.resolver.arpa SVCB over plain DNS - Discovery of Designated Resolvers, RFC 9462 - got back three designated endpoints (DoH on 443 at priority 1, DoQ and DoT on 853 at 2 and 3), and sent the real lookups over DoH 45 ms later. Our server keeps no query logs on disk; a live log of recent queries exists only in memory, on a RAM filesystem where the defence layers read it, as the privacy page describes. Read from that, for the author's own machine, it showed the SVCB query arriving over port 53 at 17:49:36.865 (UTC+2) on 1 December 2026, and example.org A and AAAA over DoH at 17:49:36.910; no lookup from that machine arrived over DoT. The upgrade is discovered at run time, which is why netsh dns show encryption lists nothing for the server. How that discovery works is set out in how devices discover encrypted DNS, and the records our resolver answers with in verified DDR end to end.
So on Windows, the connection to watch is likely TCP 443, not 853 - and the stall looks the same there. A short capture with the built-in pktmon, in an administrator PowerShell, filtered to your resolver's address (194.180.189.33 here):
pktmon filter remove; pktmon filter add -i 194.180.189.33
pktmon start --capture --pkt-size 128 -f "$env:TEMP\d.etl"
Clear-DnsClientCache; Resolve-DnsName example.org -DnsOnly; Start-Sleep 2; pktmon stop
pktmon format "$env:TEMP\d.etl" -o "$env:TEMP\d.txt"
Select-String '194\.180\.189\.33\.(\d+)\b' "$env:TEMP\d.txt" -AllMatches |
% { $_.Matches.Groups[1].Value } | Group-Object | Select-Object Count, Name
pktmon filter remove; Remove-Item "$env:TEMP\d.*"The count by port tells you which transport was used: a few packets on 53 and the rest on 443 is DDR followed by DoH; packets on 853 mean DoT. Other ports to the same address are other software, not DNS. pktmon records each packet once per network component it passes, so expect every line several times over. A new connection appears as Flags [S] towards port 443. We captured Windows only on a healthy path; on a stalled one, by the same TCP mechanics as above, you would expect that SYN to be answered and the client's first data to be repeated with no reply. To confirm that your lookups are encrypted at all, rather than how they stall, see how to test if DNS is really encrypted.
What to do on such a network
First, find out whether it is the network. Try the same phone on a different network - mobile data instead of Wi-Fi, or the other way round. If Private DNS works there and fails here, the path is the problem, not the resolver and not the phone.
Know what Android's three settings do. Private DNS offers "Off", "Automatic" and "Private DNS provider hostname" (strings from AOSP SettingsLib; where the setting sits differs between manufacturers, so search Settings for "Private DNS"). With a hostname set, Android does not fall back: if the path holds port 853, DNS fails and you get the notification - or "Couldn't connect" on the setting itself. "Automatic" will not fail that way, but it only encrypts when the network's own resolver offers DoT, and otherwise sends ordinary DNS. Switching to it trades the failure for unencrypted lookups on that network. That is a privacy decision, not a fix.
Port 443 is a different path. DoH and DoH3 run on 443, the port every web page uses, and a network that holds 853 often leaves 443 alone. A browser's own setting uses it independently of Private DNS: in Chrome it is "Use secure DNS", where "Add custom DNS service provider" takes your resolver's DoH URL (strings from Chrome 149). It covers that browser only, not other apps. Networks that intercept traffic on purpose, such as hotel and airport sign-in pages, are their own case, covered in encrypted DNS and captive portals.
The general lesson
"Connected" is a TCP word. Encrypted DNS needs two client flights of data to get through before it can answer, and a network can let the connection through while holding the data. When you see a socket in ESTABLISHED with its first 1,500 bytes still unacknowledged, the server is not the thing to debug.
Related: how to test if DNS is really encrypted, the encrypted DNS transports compared, and how devices discover encrypted DNS on their own.
Ozy-666 builds and operates dnsdoh.art, an encrypted DNS resolver serving DoH3, DoH, DoQ and DoT. The measurements in this guide were run against that resolver and two public ones from a second test server, and the Windows check on the author's own machine.