How to block pop-up ads on Android with Private DNS

You will set your Android phone to use a private DNS server that filters most in-app and browser ads, with no extra app to install. It suits anyone on Android 9 or later who is tired of pop-ups in games and browsers. You only need your phone and a few minutes in Settings.

YouTube video: How to Stop ALL Pop-Up Ads on Android (2026) - 1 Click!

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

Video length
5 min 56 s
Time to do it
5 minutes
Difficulty
Easy
Steps
7

What you need

Steps

  1. Open the Settings app on your Android phone. Look for Network and internet, Connections or Connection and sharing, depending on your phone brand.

  2. Tap Private DNS. If you cannot see it, tap the search icon at the top of Settings and type Private DNS.

  3. Select the option labelled Private DNS provider hostname, or Hostname of private DNS provider on Samsung phones.

  4. Type dns.adguard.com in the hostname box. Spell it exactly, with no spaces, no www and no https:// in front.

  5. Tap Save. The filter starts working straight away, on both Wi-Fi and mobile data.

  6. Open the game or browser where the pop-ups appeared and load a few pages to confirm the ads are gone.

  7. To switch it off later, return to the Private DNS screen and choose Automatic or Off, then tap Save.

Tips and common mistakes

Apps like YouTube and Instagram serve ads from the same place as their videos and photos, so those ads will still appear.

Hotel, airport and cafe Wi-Fi often needs a login page that a custom DNS can block, so set Private DNS to Automatic until you are signed in.

If a website stops loading or an app cannot connect, turn Private DNS off to check whether the DNS setting is the cause.

You do not need to install an ad blocker app or create an account for this, which keeps your phone free of extra permissions.

Questions

Does Private DNS remove every ad on my phone?

No. It blocks most ads that come from known ad servers, so pop-ups in games and browsers usually drop a lot. Ads built into apps like YouTube still show.

Will this slow down my phone or use more battery?

The setting only changes which server looks up web addresses, so it has little effect on speed or battery. Some pages may load slightly slower while the filter checks the address.

Do I have to do this again after a restart?

No. Android keeps the hostname saved until you change it back to Automatic or Off, or until you factory reset the phone.

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