
Since Android 9 there is a "Private DNS" setting that encrypts name lookups with DNS over TLS (DoT, port 853). On its own it is a good thing, keeping your carrier from tampering with lookups. But used with FlClash, it sometimes makes routing rules fail for no obvious reason.
Not every phone runs into the clash between Private DNS and FlClash. Manufacturers and Android versions handle VPNs and Private DNS differently: some systems send DNS through the VPN automatically when it is on, others insist on Private DNS. So someone else saying "no problem" does not mean your phone has none; the reliable way is to look on the Requests page yourself. Changing settings once you see a problem is safer than turning everything off from the start. The Requests page shows domains, exits and the rules hit at a glance, which beats guessing, and makes it easy to describe the situation accurately when asking for help.
Three modes
| Mode | Behaviour | With FlClash |
|---|---|---|
| Off | Ordinary DNS from the network | The easiest; DNS goes to FlClash |
| Automatic | Uses DoT when available, ordinary DNS otherwise | Usually fine |
| Private DNS provider hostname | Uses only the DoT server you entered | May bypass FlClash and break routing |
Where it lives varies by manufacturer, usually Settings → Network & internet → Private DNS, or under "More connection settings".

Why it breaks
FlClash routes by domain only if it knows which domain you are visiting. Normally the system's DNS lookups pass through FlClash, which records which address belongs to which name.
With Private DNS set to a specific hostname, the system asks that DNS server directly over an encrypted connection. FlClash sees only an encrypted connection to port 853 and cannot see which domain was asked about. Domain-based rules may then fail to match, and some traffic leaves by the wrong exit.

How to set it
- Open the system settingsFind "Private DNS"
- Choose "Off" or "Automatic"Not "Private DNS provider hostname"
- Restart the proxy in FlClashSo the new DNS setting applies
- Check on the Requests pageDomains should show normally
If you must keep a specific hostname for some reason, enable the "Block DoT" preset in FlClash. With port 853 blocked, the system falls back to ordinary DNS and hands it to FlClash.
Spotting the problem on the Requests page
Open FlClash's Requests page; normally every connection shows a domain, such as www.example.com. If many connections show only IP addresses, or you see lots of connections to port 853, name lookups are not passing through FlClash.
| What the Requests page shows | Likely cause |
|---|---|
| Most connections show domains | Normal |
| Many connections show only IPs | DNS is not going through FlClash |
| Many connections to port 853 | Private DNS is using DoT |
| The DNS query list is empty | System DNS bypasses FlClash completely |
FlClash's own DNS
FlClash's configuration can set upstream DNS servers, and many providers' configurations already use encrypted upstreams such as DoH addresses. In other words, turning off the phone's Private DNS does not expose your lookups in plain text to the carrier; FlClash forwards them encrypted.
When FlClash is off
If you run FlClash only part of the time and want Private DNS the rest of the time, set Private DNS to "Automatic". The system uses it when it can, and it rarely clashes when FlClash is on. If you need to switch back and forth, an automation tool can also set Private DNS to off when FlClash starts.
Apps excluded by access control
If access control keeps some apps (banking, say) out of the VPN, their lookups never go through FlClash anyway, and Private DNS applies to them as usual. Only apps inside the VPN are affected. So when troubleshooting, first check whether the problem app is excluded: an excluded app with lookup trouble most likely has a Private DNS server problem unrelated to FlClash; only apps inside the VPN need the adjustments in this article.
Is turning off Private DNS less safe?
With FlClash on, it handles DNS according to its configuration, which usually already uses encrypted upstream DNS.
Does the browser's "Secure DNS" matter too?
Secure DNS (DoH) in Chrome and other browsers uses port 443 rather than DoT's, but it can likewise hide domains from FlClash. Turn off the browser's Secure DNS while using FlClash.
Routing is still wrong after changing it?
See which rule the connection hit on the Requests page; the rule itself may be the problem.
What goes in the Private DNS box?
The hostname of a DoT server, such as an address given by a public DNS provider, not an IP.


