Block ads on Android without an app

Android can filter ads on its own, with no app and no special permission: you only need to fill in one field in Settings. Here’s how to do it in two minutes, what it really removes, and what to know first.

The setting hardly anyone knows about

Since Android 9, the system has a field called Private DNS. It decides which server your phone asks for the address of every site and app, and it encrypts those questions (Cloudflare).

By default, your carrier answers. Put an ad-blocking DNS there instead and it refuses to give out the address of ad servers, so the ad never loads. Nothing to install, nothing running in the background, no extra battery drain. It applies to every app, on Wi-Fi and on mobile data.

Three steps

  1. Open Settings → Network & internet → Private DNS (Android Help). On a Samsung, it’s Settings → Connections → More connection settings → Private DNS. Otherwise, search for “Private DNS” in Settings.
  2. Choose “Private DNS provider hostname”.
  3. Type dns.adhole.fr, then Save.

That’s it. AdHole DNS is free, needs no account and keeps no site names. Its page has a button that checks the setting took. Other services do the same job: our guide to ad-blocking DNS servers compares them.

What it removes, and what stays

A DNS blocks server names. So it removes what comes from an ad network: banners, full-page ads and the videos in many mobile games, plus a good share of the tracking.

It can’t remove what comes from the same server as the content. Ads in the YouTube app stay, and so do Twitch, Netflix and Prime Video ads. It won’t hide the blank space a blocked ad leaves, and it won’t reject cookie banners.

An app may also react badly. Some won’t open until their ad has answered; a few find their servers’ addresses on their own and slip past the filter.

The risk to know about first

With a hostname set, Android has no fallback. If the server stops answering, or the network you’re on blocks this kind of connection, the phone says it can’t reach the private DNS server, and nothing opens.

Remember where the setting lives. Switch back to Automatic and everything returns, and you don’t need internet to do it. It’s also the first thing to try on a hotel Wi-Fi that refuses the connection.

Want to go further?

A DNS only sees names. Cleaning up the inside of pages, removing YouTube ads in the browser and rejecting cookies take a filter on the phone, which is what the AdHole app for Android does. It’s downloaded from this site and doesn’t need this setting. If it’s running, leave Private DNS on Automatic.

Sources checked on November 1, 2026, linked in the text.