Afwall: DNS Leak: Blocked apps still make dns queries

Created on 26 Nov 2019  路  6Comments  路  Source: ukanth/afwall

Similar issues #957 and #997

All dns queries of all apps (even blocked) are coming from user 0 (root)
Blocking root also blocks dns at all
Finally, I've found that all dns queries are coming from netd

How to force dns queries have their real uid?

Most helpful comment

Unfortunately it's not possible until you have your own dns proxy. cernekee wrote about it sometime back
https://forum.xda-developers.com/showpost.php?p=44722857&postcount=4

he has the repo also with custom dnsproxy
https://github.com/cernekee/dnsproxy2

Original plan was to integrate it with AFWall+, but never happened.

All 6 comments

Unfortunately it's not possible until you have your own dns proxy. cernekee wrote about it sometime back
https://forum.xda-developers.com/showpost.php?p=44722857&postcount=4

he has the repo also with custom dnsproxy
https://github.com/cernekee/dnsproxy2

Original plan was to integrate it with AFWall+, but never happened.

My AFWall+ rules do not grant access to "0 Apps running as root". Does this issue affect people with that rule?

cernekee wrote about it sometime back
https://forum.xda-developers.com/showpost.php?p=44722857&postcount=4

Just setting env ANDROID_DNS_MODE=local helped for me. Thanks!
I've created simple Xposed module for this purpose https://github.com/nxzero/AndroidDnsMode

@nxzero have you checked whether this actually works? The XDA thread mentions that newer versions seem to not resolve anything at all with the variable set to local.

@n90p commented on 1 Dec 2019, 10:10 GMT:

cernekee wrote about it sometime back
https://forum.xda-developers.com/showpost.php?p=44722857&postcount=4

Just setting env ANDROID_DNS_MODE=local helped for me. Thanks!
I've created simple Xposed module for this purpose https://github.com/nxzero/AndroidDnsMode

This is very nice, but where is the pre compiled module, dont see it either on your github or in the magisk download list :(

@Ch4t4r just tested on Android 10, setting that breaks resolving entirely.
If I have some free time over the next few weeks, I'll hopefully see if the modified dnsproxy works on 10 (or if I need to patch a newer version) and package it as a magisk module.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haroon-ali picture haroon-ali  路  4Comments

michaelbarrientos picture michaelbarrientos  路  4Comments

manfred3000 picture manfred3000  路  6Comments

0pLuS0 picture 0pLuS0  路  8Comments

adisib picture adisib  路  9Comments