-
-
Notifications
You must be signed in to change notification settings - Fork 607
LogDNS
asheroto edited this page Aug 10, 2023
·
10 revisions
- Starting with Android Pie (9+), make sure to temporarily disable Private DNS. (See #1230).
Settings → Network & internet → Advanced → Private DNS → Off
- Start AdAway and go to the Menu.
- Select Log DNS Requests.
- Click TCPDUMP IS NOT RUNNING!.
- Wait until it shows TCPDUMP IS RUNNING!.
- (Whitelist only): Go to the main screen and click the button to Disable AdAway .
- Open the App you wish to monitor for a while. Click around on things and use the application as you normally would.
- Go back to
AdAway > Menu > Log DNS Requests
and select OPEN LOG FILE. - There you look for suspicious hostnames.
- REMOVE ADS (Blacklist): Try to block some of them by adding them to your Blacklist from that screen (long press a hostname), reapply AdAway and restart your Android device.
- FIX APPS THAT AREN'T WORKING (Whitelist): Look for some of the hosts the app will try to connect to and add to your Whitelist to allow it. (Keep in mind this will allow ANY app to connect to that URL to pull ads)
-
(Whitelist only): Re-apply AdAway to see if your whitelist additions worked.
- Remember if you see a bunch of similar host names like
a.adserver.com
,b.adserver.com
,c.adserver.com
, you can just add one of them to your whitelist, long press on it to edit. - Then change to
*.adserver.com
to whitelist that whole domain.
- Remember if you see a bunch of similar host names like
- Make sure to enable Private DNS again after your logging attempt.
- If it helped and you are totally sure, which hostname served the ads, please share the hostname(s) to the ProblematicApps Wiki page.
- Private DNS might be active. See steps above to disable.
- The TCPDump process could be getting killed by SELinux enforcing policy.
- You can go to the forums here, http://forum.xda-developers.com
- Find your device thread and see if there is a way to get your device into SELinux Permissive state. Then you can try the above again.