How To Block Ads In Android Smartphones Using Private DNS

In android smartphones, most of the apps show unwanted ads and pop-ups. It may be irritating to the user. There are a lot of methods to block these ads from showing up. Most used method is by using third party ad-blocking apps. You can download apps such as Adblock Plus, AdGuard and AdLock to block ads on your smartphone. Most of these apps need root permission for blocking ads effectively. But there is an another method for blocking the ads which uses the private dns.

Smartphones with Android 9 or later comes with Private DNS feature. This feature can be used for blocking the ads. The biggest advantage of this feature is that you don't need to download any app on your smartphone and you get system-wide ad-blocking without root access. Adguard dns is used for blocking malicious ads and pop-ups.

Steps to set up Adguard DNS

  • Make sure your device runs on Android 9 or later.
  • Go to Settings>Network&Internet Settings>Private DNS
  • In Oneplus devices, Settings>Wifi&Internet>Private DNS
  • For Samsung Galaxy devices Settings>Connections>More Connection Settings>Private DNS
  • If you cannot find the Private DNS option, then simply search Private DNS in Settings search bar.

Private DNS

  • Then select Private DNS provider hostname and enter the hostname of DNS provider as ''.
  • For family protection mode(for blocking adult content) enter the hostname of DNS provider as ''.
  • Hit Save and exit from the Private DNS menu. That's it. Now your device will block most of the ads and pop-ups.


  1. Using the latest LP tool, you can block ads from apps and websites...

  2. The worst part of it was that the software only worked intermittently and the data was not accurate. You obviously canot confront anyone about what you have discovered if the information is not right free classified ads sites