[FEATURE REQUEST] Optional “silent drop / no-response” mode for blocked DNS queries (force client-side timeout)
Hi team,
First of all, thank you for the excellent work on Rethink. The combination of on-device DNS filtering + firewall is extremely useful.
Current behaviour When a domain is blocked (via on-device blocklists, RDNS Plus, or domain rules), Rethink always returns a response — typically 0.0.0.0 / :: (blackhole). This is efficient and works well in most cases.
Requested feature Please consider adding an optional blocking mode that does not reply to the DNS query at all (silent drop). The client/stub resolver would then time out on its own instead of receiving an explicit NXDOMAIN, REFUSED, or blackhole answer.
This could be exposed as:
- A global setting under Configure → DNS (e.g. “Block response type”: Blackhole / NXDOMAIN / Silent drop)
- Or a per-rule / per-app option so it can be used selectively
Why this would be valuable Many modern apps and especially games perform integrity / environment checks. They can detect explicit DNS filtering by looking for:
- 0.0.0.0 or other well-known sinkhole addresses
- NXDOMAIN / REFUSED responses
- Very short TTLs on blocked answers
When they detect this, some raise suspicion, disable features, show warnings, or in the worst case trigger anti-cheat / ban systems. A pure timeout, on the other hand, looks like ordinary network or DNS unreliability — something that happens frequently on mobile networks and is far less likely to be interpreted as intentional filtering.
Some cloud and enterprise DNS solutions already support similar “drop without response” behaviour (e.g. RPZ DROP policy in BIND, certain security resolvers). Having this option inside Rethink would bring the same flexibility to the local Android path without requiring an external upstream that supports it.
Suggested behaviour
- Only apply to domains that the user has explicitly chosen to block
- Keep the current blackhole behaviour as the default so existing users are unaffected
- Log the drop in DNS logs (perhaps with a distinct status such as “Dropped / No answer”) so it remains transparent to the user
- Optionally allow a configurable timeout window if that is feasible on the Android side
I understand that silently dropping queries is generally discouraged by DNS best practices for ordinary resolvers, but in the specific context of a user-controlled local filter it can be a legitimate and useful privacy / compatibility tool.
Thank you for your time and for continuing to improve Rethink.
Another use case is to slow down WhatsApp and SchildiChat, which continually attempt to connect until they are able to make a connection. This consumes a lot of battery and floods Rethink's logs.
Optionally allow a configurable timeout window if that is feasible on the Android side
In my experience, slowing DNS responses down only results in more, duplicated DNS queries from the retries, not less.
This consumes a lot of battery and floods Rethink's logs.
How do you measure that it consumes a "lot of battery"? Rethink already has a "stall" (currently, stalled up to a max of 30s) mechanism to penalize apps that continually try to connect to blocked/denied domains & IP/ports.
This consumes a lot of battery and floods Rethink's logs.
How do you measure that it consumes a "lot of battery"? Rethink already has a "stall" (currently, stalled up to a max of 30s) mechanism to penalize apps that continually try to connect to blocked/denied domains & IP/ports.
Not a rigorous analysis, just an inference.
- I have blocked
*.*.*.*:53for WhatsApp. - Since I updated WhatsApp and Rethink (0.5.5n -> 0.5.5z) a couple weeks ago,
- WhatsApp endlessly spams DNS
8.8.8.8:53and8.8.4.4:53every 1 - 2 seconds. - The phone heats up, the battery percentage goes down 1% per minute.
- Correlation does not imply causation, and I did not have Internet for any app on 0.5.5z, but WA is definitely flooding Rethink and not rate-limited. This is on Samsung Android 7.1.
- WhatsApp endlessly spams DNS
- Same behavior on 0.5.6.
- Switching to another firewall without per-app rules support (apps are either totally allowed or totally blocked) fixed the battery draining and heating.
- I needed to introduce a fallback firewall because 0.5.6 is broken for me: I have no Internet for any app; all DNS requests appear to come from unknown app ANDROID with uid=0.
- I'm planning to revert to 0.5.5n which was the last working version for me (if it were a bugfix-only long-term support branch, I'd follow it)
SchildiChat attempts HTTPS 192.168.1.1:443 every 2 s - 5 s - 10 s and then it stops after a few times, I can't tell if the stopping is due to SC itself or the firewall, but it does not look like it's rate-limited.
Thanks.
I needed to introduce a fallback firewall because 0.5.6 is broken for me: I have no Internet for any app; all DNS requests appear to come from unknown app ANDROID with uid=0
This itself shouldn't result in internet loss for all apps unless ANDROID is blocked. In which case, you could unblock it from Configure -> Apps? Or, if you have Configure -> DNS -> Split DNS turned off, blocking ANDROID shouldn't block DNS for all apps. If it does so, that's a bug we'd want to fix on priority.
For Android versions below 12, Rethink cannot determine app names during domain name resolution. It is an Android limitation (and in some cases for all Android versions, it is OEM specific).
The phone heats up, the battery percentage goes down 1% per minute ... Samsung Android 7.1.
Worrying. Think Android has pretty good accounting for battery drain. You can check which app causes this in Android's Settings app (not sure if Android 7 is as good at it, as some of the later versions). Please do verify if it is indeed WhatsApp with high battery % use (which we can then assume may have been due to the *:53 block/deny rule). I'll test this too, but I'm on Android 16, so not sure if anything will behave differently.
Thanks.
I needed to introduce a fallback firewall because 0.5.6 is broken for me: I have no Internet for any app; all DNS requests appear to come from unknown app ANDROID with uid=0
This itself shouldn't result in internet loss for all apps unless
ANDROIDis blocked. In which case, you could unblock it from Configure -> Apps? Or, if you have Configure -> DNS -> Split DNS turned off, blockingANDROIDshouldn't block DNS for all apps. If it does so, that's a bug we'd want to fix on priority.For Android versions below 12, Rethink cannot determine app names during domain name resolution. It is an Android limitation (and in some cases for all Android versions, it is OEM specific).
Thank you. On 0.5.5n I had ANDROID set as Isolated. I upgraded to 0.5.6 and lost Internet. On 0.5.6 I do have Configure -> DNS -> Split DNS (experimental) turned off. Now I allowed ANDROID and have Internet back again.
The phone heats up, the battery percentage goes down 1% per minute ... Samsung Android 7.1.
Worrying. Think Android has pretty good accounting for battery drain. You can check which app causes this in Android's Settings app (not sure if Android 7 is as good at it, as some of the later versions). Please do verify if it is indeed WhatsApp with high battery % use (which we can then assume may have been due to the *:53 block/deny rule). I'll test this too, but I'm on Android 16, so not sure if anything will behave differently.
My intention was to make it explicit that at least 0.5.5z and 0.5.6 do not rate-limit WA (connection to
I usually see technical criticism and bad opinions about Android's accuracy of attributing the battery usage to the apps, on the issue trackers of other projects.
May be, but I am skeptical of claims by those projects.
On 0.5.5n I had
ANDROIDset as Isolated. I upgraded to 0.5.6 and lost Internet. On 0.5.6 I do have Configure -> DNS -> Split DNS (experimental) turned off.
Hm. In versions prior, no firewall rules were applied during DNS resolution time. In v055v and then in v056, Rethink does apply all firewall rules (in this case, Isolate). We knew of the behaviour changes & yet we persisted with it as it is strictly plugging a "leak". It isn't a regression. Although, given the enormous number of changes we have had to make to do this, it might have resulted in a few major bugs (ex: #3035), which we hope to iron out over the course of the next few releases.
I needed to introduce a fallback firewall because 0.5.6 is broken for me: I have no Internet for any app; all DNS requests appear to come from unknown app ANDROID with uid=0
The complete loss of internet for every app, with all DNS queries attributed to the unknown app “ANDROID” (uid=0), is a known side-effect of how Android’s networking stack works on many devices, especially older ones.
Android maintains two distinct system-level identities that Rethink surfaces:
- “Android System” – a collection of ordinary system apps and services.
- “ANDROID” (uid=0) – the process identity of the netd daemon (and related core networking components).
On Android 9 and earlier (and on many custom ROMs even later), applications do not perform DNS resolution themselves. Instead they hand the query to the Bionic libc stub, which forwards it over the Unix-domain socket /dev/socket/dnsproxyd to netd. netd runs as uid=0 and therefore appears in Rethink’s logs as “ANDROID”.
When Rethink’s firewall isolates or denies uid=0, netd can no longer complete those queries. Any app that relies on the system resolver—most browsers via WebView, many background services, captive-portal detection, etc.—immediately loses the ability to resolve names and therefore appears to have “no Internet”, even though the individual app itself is marked “Allow” in Rethink.
This is exactly the behaviour you observed and is the reason a fallback firewall rule that blocks ANDROID produces a total outage.
This itself shouldn't result in internet loss for all apps unless
ANDROIDis blocked. In which case, you could unblock it from Configure -> Apps? Or, if you have Configure -> DNS -> Split DNS turned off, blockingANDROIDshouldn't block DNS for all apps. If it does so, that's a bug we'd want to fix on priority.
You are correct: merely seeing DNS traffic attributed to ANDROID should never black-hole every other application unless ANDROID itself has been blocked (or Split DNS is disabled in a way that forces every query through the blocked identity).
On devices where the OS still routes DNS through netd (uid=0), blocking that single identity is equivalent to disabling the system resolver. The practical consequence is that: Apps using the platform getaddrinfo / WebView stack can no longer obtain A/AAAA records.
Even apps that are explicitly allowed in the firewall lose connectivity because name resolution fails before any TCP/UDP socket is opened.
The failure is independent of the per-app firewall rule; it is a dependency on the shared system DNS proxy.
Similar Behavior happens on my older device running Android 8.1 , Whitelisting "Android" in Rethinkdns makes the internet work normally.