@Bot, Most modern Android apps use hardcoded DoHs/DoTs, proprietary DoHs/DoTs, and hardcoded IPs to bypass Android's "Private DNS" or systemwide DNS. How effectively can Cloudflare WARP business DNS-only and WARP modes redirect traffic from these apps and embedded browsers? I guess the Cloudflare WARP client creates/enables a local VPN for both DNS-only and WARP modes. Can you use Cloudflare Zero Trust's "Network" or "HTTP" policy to redirect (or can it only block) traffic from these apps and embedded browsers?
Cloudflare WARP can help, but it is not a universal way to “force” every Android app back through your preferred DNS.
What WARP does on Android
Yes, the WARP client uses Android’s VPN framework.
- DNS-only / Gateway with WARP client generally means DNS queries are sent to Cloudflare’s resolver/Gateway through the WARP tunnel, while the rest of the traffic may not get the same full-tunnel treatment as WARP mode.
- WARP mode tunnels device traffic through Cloudflare’s network using the local VPN interface.
That local VPN gives Cloudflare visibility and control over traffic
that actually traverses the tunnel. It does not automatically mean every app can be transparently rewritten to your chosen DNS destination in all cases.
About apps using hardcoded DoH/DoT or hardcoded IPs
In general, apps can bypass Android Private DNS by doing their own DNS resolution inside the app, for example:
- Hardcoded DoH endpoints
- Hardcoded DoT endpoints
- Direct connections to hardcoded IPs
- Embedded browsers or SDKs using their own network stack
Because of that:
- If an app sends its traffic through the WARP VPN, Cloudflare can usually still see and apply policy to the connection attempt at the network level.
- But that does not necessarily mean Cloudflare can “redirect” that app’s DNS to another resolver in the way a local firewall or a more invasive MDM-controlled setup might.
- If the app uses encrypted DNS to a specific provider, the practical control is often allow or block, not seamless redirection.
- If the app connects directly to hardcoded IPs, DNS policy is largely irrelevant because no normal DNS lookup is needed for that connection.
So the short answer is: WARP is often effective for
capturing traffic into the tunnel, but not reliably for
rewriting every app’s hardcoded DNS behavior into your preferred DNS flow.
Can Zero Trust policies redirect traffic?
Based on Cloudflare Zero Trust’s general design,
Network and
HTTP policies are mainly for
allowing, blocking, isolating, inspecting, or filtering traffic depending on plan/features and traffic type.
They are
not primarily a generic traffic-redirection engine for Android apps using custom DoH/DoT stacks.
In practical terms:
- Network policies can usually control whether traffic to certain destinations, ports, protocols, or resolved domains is allowed.
- HTTP policies can control web access for traffic that is recognized and handled at that layer.
- For hardcoded encrypted DNS endpoints, the most realistic action is often to block those endpoints rather than redirect them to Cloudflare Gateway.
- For hardcoded IP connections, you may be able to block or allow those IPs, but not meaningfully “DNS-redirect” them.
Embedded browsers
Embedded browsers are mixed.
- If they rely on the app’s own networking and go through the VPN, WARP may still subject them to Zero Trust policy.
- If they use hardcoded resolvers/endpoints, the same limitation applies: Cloudflare can often filter or block, but not necessarily transparently reroute the DNS method they chose.
What this means in practice
If your goal is to stop apps from bypassing system DNS, Cloudflare WARP helps most when:
- The app traffic is forced through the Android VPN
- You are comfortable with blocking known third-party DoH/DoT endpoints
- You understand that some apps using direct IPs or tightly integrated encrypted transports may only be controllable by destination blocking, not DNS redirection
If your goal is
true enforcement against hardcoded resolvers, the usual approach is:
- Route all traffic through the VPN
- Block known external DNS destinations such as port 53/853 and known DoH endpoints where possible
- Use destination/IP/domain policy rather than expecting transparent DNS rewriting
Important limitation
I cannot safely say that Cloudflare Zero Trust on Android can
universally redirect hardcoded DoH/DoT traffic from all apps and embedded browsers, because that depends on Cloudflare’s current Android client behavior, plan features, and how each app implements networking. That part needs confirmation from current Cloudflare documentation or support.
Bottom line
Cloudflare WARP on Android is useful for funneling traffic through a VPN-based control point, and Zero Trust policies can often
block or filter apps that use custom DNS paths. But for apps with hardcoded DoH/DoT or hardcoded IPs, you should assume the reliable control is mostly
policy enforcement and blocking, not universal transparent redirection.
Sources