In android 9.0 pie and above we have an option to set Private DNS, this can be used to block ads on your phone.

STEP 1- Under Connection in Settings, scroll down and select More Connection Settings.

image



STEP 2- Select the Private DNS Option
image



STEP 3- Select Private DNS  provider hostname and enter the following in the text bar


For Adguard DNS: dns.adguard.com      

For Adguard DNS and removing adult content: dns-family.adguard.com


image



Additional STEPS for using this with Google  Chrome-
Since Google Chrome uses its own DNS resolver, we need to disable that for ad block to work. 

STEP 1-
  • Launch Chrome app.
  • Enter the URL “chrome://flags”, without quotes, into the address bar.
  • You will see a new window with many flags.
  • Search for “dns”.
  • Set the “Async DNS” option to “Disabled” and close the tab.

image


STEP 2- You will also need to clear the prebuilt DNS cache.

  • Enter “chrome://net-internals”, without quotes, into the address bar.
  • Select the DNS tab, and tap on “Clear Cache”.
  • Restart Chrome.
Confirmed Working on-
Google Chrome
Samsung Internet (Just Clear Cache)


Sources-
Information and Picture of Chrome flags taken from androidsage.com
Main Article was created by me on my S10+ with help from Reddit.
98 Comments
Highlighted
This is great!! have you had any glitches?
Reply
Loading...
Highlighted
No bro and it works good too.
Reply
Loading...
Highlighted
Beginner Level 2

1. You won't be able to view most of the video ads in apps and games, so if you want to get free coins for watching the video ads in some app/game, you'll probably have to turn off the private DNS.

 

2. I have trouble connecting to public wifi hotspots. When you connect to such hotspot, it should open an authorization page, where you need to enter the phone number and wait for an SMS with the code to connect (at least in my country so). Adguard blocks access to these pages and I have to disable it so they load up.

 

3. Some web-sites are not working properly (don't load, don't fully load or load crooked and so on) . I have met problems very rarely, but still met. 

Reply
Loading...
Highlighted
Great post. 🔥
Reply
Loading...
Highlighted
great post @Aashish
Reply
Loading...
Highlighted
Guys can you confirm what all applications are working so I add them to the list of working apps?
Reply
Loading...
Highlighted
Awesome. Kudos Aashis
Reply
Loading...
Highlighted
Beginner Level 2
This is great!! have you had any glitches?
Reply
Loading...
Highlighted
This is awesome ! thanks
Reply
Loading...