logoalt Hacker News

hiccuphippo06/16/20253 repliesview on HN

DNS blocking with tools like DNSNet get you halfway there without tampering with the apps. It installs itself like a VPN and filters dns requests to ad domains using lists from the same sources as the adblockers.

I say halfway because some apps have a fallback, built-in, ad when it can't reach the server, other serve the ads from their own servers so no way to block them. Most only leave a blank space.


Replies

shizzor06/17/2025

On Android there's also "Private DNS" where you can set a different server to resolve domain names. This way, you won't need to install and run additional apps and can still use VPN for ... well VPN.

yehoshuapw06/16/2025

also adaway, which does the same or can be used in root mode to edit the hosts file.

I use the hosts file from there, and edit it manually via "adb root" (lineageos. root only via adb)

paxys06/16/2025

More than halfway I'd say. It blocks everything from third party ad networks, which is what 90%+ of websites and apps use.