How to block ads on Android with Private DNS

Use Android's built-in Private DNS setting to filter out most ad and tracking domains, with no extra apps and no root. It suits any recent Android phone or tablet and takes a couple of minutes. You only need your device's Settings app and an ad-blocking DNS hostname.

YouTube video: How to Block Ads on Android

Caption availability is unknown. Check the CC control in the YouTube player.

5 chapters. Tap a step to jump to it.Chapters from the creator
Choose a chapter (5)
Video length
1 min 15 s
Time to do it
5 minutes
Difficulty
Easy
Steps
7

What you need

Steps

  1. Open the Settings app on your Android phone or tablet.

  2. Tap Network and internet, then look for Private DNS. On some phones it sits under Connections or More connections.

  3. Select the Private DNS provider hostname option so you can type your own address.

  4. Type dns.adguard.com in the hostname field. This is AdGuard's free ad-blocking DNS server.

  5. Tap Save. The setting applies right away, with no restart needed.

  6. Open your browser and load a site that usually shows banners. Most ad domains should now fail to load.

  7. If ads still appear or pages break, go back to Private DNS and switch it to Automatic or Off to undo the change.

Tips and common mistakes

This blocks ads in browsers and many apps, but not inside apps that load ads from their own servers, such as YouTube.

Some sites may load slowly or show gaps where ads were, so switch back to Automatic if a page misbehaves.

Private DNS only works on Android 9 and later; older versions need a different method.

Use a hostname you trust, since all your DNS traffic passes through that provider.

Questions

Does this remove ads from YouTube and games?

No. It filters ad domains at the network level, so in-app ads served from the same servers as the app's content usually still appear.

Do I need to root my phone?

No. Private DNS is a standard Android setting, so there is no root and no warranty risk.

Will this slow down my browsing?

Usually not. DNS lookups are quick, and blocking ad requests can actually make pages load faster.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Computers & Phones

See all