How To Configure Private DNS to Block Ads on Android

Ads have become a regular part of our online experience, often causing frustration and disruptions. They can even affect our device’s performance. Traditionally, users would root their Android devices for ad-free browsing, but this can be risky. Luckily, there’s a safer method available – using the “Private DNS” feature introduced by Google in Android Pie. In this guide, we’ll show you how to block ads on your Android device without rooting, using Adguard DNS.

What is Adguard DNS?

Adguard DNS is a reliable way to block internet ads without installing extra apps. The best part? It’s free and works on almost any device. It provides a hassle-free ad-blocking solution for Android, without the need for rooting or complex settings.

Steps to Block Ads on Android Using Private DNS:

Before you start, make sure your Android device is running Android 9 Pie or a newer version. Follow these steps if you’re on Android Pie:

  1. Open “Settings” in your app drawer.
  2. Under “Settings,” select “Connections” or “Network & Internet.”
  3. Click on “More connection settings.”
  4. Look for and click on “Private DNS.”
  5. Tap “Private DNS provider hostname” and enter “” Then, click “Save.”
  6. Open Google Chrome and enter “chrome://flags” in the URL bar.
  7. Search for ‘DNS’ and disable the ‘Alpn DNS’ option.
  8. Next, enter “chrome://net-internals” in the URL bar and hit enter.
  9. Select the DNS tab and tap on the ‘Clear Cache’ option.
  10. Restart your Chrome browser to apply the changes.

Choosing the Best DNS for Ad Blocking on Android:

Adguard DNS is excellent for ad blocking, but there are other options for enhanced privacy and security:

  1. LibreDNS: Offers ad blocking along with enhanced security. Use ‘’ in the “Configure Private DNS” field.
  2. Control D: Stops ads, malware, and trackers. Use ‘’ in Private DNS configuration for ad blocking.
  3. NextDNS: A comprehensive security-focused DNS provider. Create an account, configure settings, and use the NextDNS app for ad blocking.


While Adguard DNS won’t remove every ad, it effectively handles the most annoying ones. This method provides a valuable tool to improve your online experience and reduce disruptions.

Leave a Comment