How to Block Ads on Android Using Private DNS (and What It Cannot Block)

Private DNS on Android: editorial illustration of a phone filtering advertising requests
Illustration, not a settings screenshot. DNS filtering reduces some ads, it does not block every advertisement.

By Shahroze Azmat · Sources checked 26 October 2026

Quick answer

On a phone running Android 9 or later, search Settings for Private DNS, choose the provider-hostname option, enter dns.adguard-dns.com, and save. This uses AdGuard’s filtering service to reduce ads and trackers. It will not remove every advertisement.

An ad inside a game, a sponsored social post and a website notification can look like the same problem: something on your phone demanding attention. They do not all arrive in the same way, so one setting cannot reliably fix all three.

Private DNS is a useful starting point when you want basic filtering without installing another app. Here is how to set it up, what results to expect, and how to undo the change if something stops working.

How Private DNS reduces ads

DNS helps apps and browsers find the network address associated with a domain name. A filtering provider checks those requests against its filtering rules and can refuse requests for known advertising or tracking domains. AdGuard explains this domain-based filtering process here.

Two separate features are involved: Android provides the encrypted DNS connection, while a filtering provider such as AdGuard decides which domains to block. Merely enabling Private DNS does not mean an ad blocker is active.

Google documents built-in Private DNS support from Android 9 onward, using DNS-over-TLS. Older Android versions do not offer the same built-in setup across networks. See Google’s Android DNS guidance.

Set up AdGuard DNS on Android

Before editing anything, note your existing selection and any custom hostname so you can restore them later.

  1. Open Settings and search for Private DNS.
  2. Open the result. Google’s documented route is Network & internet → Private DNS; menus vary between phones.
  3. Select Private DNS provider hostname.
  4. Enter dns.adguard-dns.com. Use only the hostname, without https://, spaces or quotation marks.
  5. Tap Save, then try your usual websites and apps.

These steps follow Google’s settings instructions and AdGuard’s public Android configuration. Search Settings on Samsung, Xiaomi, Redmi, OPPO and other phones instead of assuming they share one menu layout.

Choose the right server
  • dns.adguard-dns.com: the standard option for ads and trackers.
  • family.adguard-dns.com: adds adult-content filtering and Safe Search/Safe Mode where supported.

AdGuard also lists a non-filtering server. That option does not provide ad blocking. The public service is free; this setup uses its public hostname.

What Private DNS cannot block

A DNS filter works with domains, not individual elements on a page. When an advertisement shares a domain with the content you want, blocking the domain can block that content too.

AdGuard’s documentation identifies YouTube and Twitch ads, along with sponsored posts on Facebook, Instagram and X, as examples of this limitation. Read AdGuard’s explanation of DNS filtering limits.

Seeing one of those ads therefore does not, by itself, prove you entered the hostname incorrectly. Judge the setup by whether it helps in your normal use while keeping the services you need working.

Check whether your browser uses another DNS provider

In Chrome, open Settings → Privacy and security → Use secure DNS. Chrome supports a custom DNS provider here. If you selected a different service, review that choice when browser filtering differs from your expectations. Apps that handle their own DNS requests can also behave differently from apps using Android’s system resolver. Android’s technical explanation describes this distinction. Google documents it under Chrome’s security settings.

What to do if the internet stops working

When you specify a provider hostname, Android needs to reach that provider over an encrypted connection. If it cannot, DNS lookups can fail and the phone may report no internet access. Google documents this behaviour.

As a troubleshooting step, reopen Private DNS and restore your previous setting. If it was Automatic, select Automatic and save. Then retry the same website or app.

  • If access returns: check the hostname for typing mistakes before trying again. Compare the result on Wi-Fi and mobile data to see whether the problem is limited to one connection.
  • If only one app or website fails: compare it with your previous DNS setting. A difference is a useful clue; it is not proof that the whole service is offline.
  • If nothing improves: investigate the underlying connection instead of repeatedly changing DNS providers.

This comparison follows Google’s general recommendation to roll back a DNS change when diagnosing connection trouble. Keep the original configuration handy rather than guessing what was selected before.

Unwanted notifications need a separate fix

Changing DNS does not revoke a website’s permission to send notifications. If Chrome is sending unwanted alerts, open Chrome → Settings → Site settings → Notifications and review permissions. You can also open the offending site, use its page-information menu, and review its permissions. Google explains both notification controls here.

Meem Gadgets tip

Start by identifying where the ad appears. An alert in the notification shade needs a permissions check, an ad within a video may be beyond DNS filtering. Matching the fix to the symptom saves more time than repeatedly entering different hostnames.

Frequently asked questions

Does it work on mobile data as well as Wi-Fi?

Android applies Private DNS across networks that support it. Test both connections if results differ. Google’s Private DNS guidance describes it as a setting for all compatible networks.

Is Private DNS a VPN?

No. It protects DNS questions and answers, rather than all traffic between your phone and the internet. Treat it as a DNS setting, not complete privacy protection. Google states this limitation explicitly.

Should I keep it enabled if an important app stops working?

Restore the previous setting first and compare. Working access matters more than keeping a particular hostname selected. Record which app failed and on which network before investigating further.

What if I cannot find Private DNS?

Check your Android version, then search Settings again. This built-in method requires Android 9 or later. If the option is still missing, consult your phone manufacturer’s instructions rather than entering the hostname into an unrelated Wi-Fi field. Google explains the Android version requirements.

Sources and verification

Official Google and AdGuard documentation linked throughout this guide was checked on 26 October 2026. The instructions were reviewed against documentation, not tested on every phone model. Menu layouts and filtering results can differ by device, app and network.

About the author: Shahroze Azmat writes Meem Gadgets guides to help readers understand everyday technology and make informed choices.

Related reading on Meem Gadgets

Comments

Popular posts from this blog