Skip to content

Instantly share code, notes, and snippets.

@Alexis-D
Last active January 5, 2020 14:06
Show Gist options
  • Save Alexis-D/8247f1b8d3ef46712f42dc57a8d93f6a to your computer and use it in GitHub Desktop.
Save Alexis-D/8247f1b8d3ef46712f42dc57a8d93f6a to your computer and use it in GitHub Desktop.
DNS ad blocking on Android

This took a bit of trial and error so documenting in the hope this helps someone.

Since Android P it possible to use a Private DNS which means we can now use an ad blocking DNS server without needing to use a VPN or root our Android devices. The only 'issue' is that this requires DNS-over-TLS which seems quite nascent at the time (Aug 2018). Fortunately for us blahdns offers a DNS-over-TLS ad blocking DNS server.

To configure this:

  1. Settings > Network & Internet > Advanced > Private DNS > Private DNS provider hostname: blah.de.blahdns.com
  2. (this step may or may not be needed) Chrome seems to use its own DNS resolver rather than the system one, so head to chrome://flags/#enable-async-dns, disable the option, and restart Chrome. If you want you can also head to chrome://net-internals/#dns and click Clear host cache to flush whatever DNS entries were cached already.
@zoonderkins
Copy link

correct domain name is: dot-de.blahdns.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment