Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS Leak: Blocked apps still make dns queries #1047

Open
n90p opened this issue Nov 26, 2019 · 6 comments
Open

DNS Leak: Blocked apps still make dns queries #1047

n90p opened this issue Nov 26, 2019 · 6 comments
Labels

Comments

@n90p
Copy link

n90p commented Nov 26, 2019

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?

@ukanth
Copy link
Owner

ukanth commented Nov 27, 2019

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.

@MountainX
Copy link

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

@n90p
Copy link
Author

n90p commented Dec 1, 2019

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

@Ch4t4r
Copy link

Ch4t4r commented Dec 9, 2019

@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.

@chrcoluk
Copy link

@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 :(

@NHellFire
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants