How to set Private DNS on Android

Private DNS is an Android setting that sends your phone's DNS lookups to a provider you name, encrypted with DNS over TLS. To use a filtering provider, open Private DNS in your network settings, choose the provider hostname option and type the hostname. If you use EZOBLOCKER, leave Private DNS on Off or Automatic, because a typed hostname takes priority over its filter.

4 min readLast reviewed October 3, 2026

What is Private DNS on Android?

Every time an app or a browser opens a site, the phone first asks a DNS server for the site's address. By default that question travels unencrypted and goes to whatever server your Wi-Fi or mobile network hands out. Android's Private DNS setting changes that. It sends the question to a server you choose, wrapped in encryption, using a protocol called DNS over TLS (DoT).

Private DNS is configured with a hostname, such as family.cloudflare-dns.com. It is not configured with an IP address. If you want the background on what a DNS lookup is, read what is DNS.

What are the three Private DNS modes?

Android offers up to three choices:

ModeWhat it does
OffPrivate DNS is not used. The phone uses the network's DNS as usual.
AutomaticThe phone tries an encrypted connection to the network's DNS server and uses plain DNS if that is not possible.
Private DNS provider hostnameThe phone sends every lookup to the hostname you typed, encrypted. If that server is unreachable, lookups fail.

Some phones label the options slightly differently. The third option is sometimes called "strict mode" in technical texts.

How do I set a filtering provider as Private DNS?

Some public DNS providers publish a family filter, which answers for a list of adult and harmful sites with a blocked result. Typing that provider's hostname into Private DNS applies it to the whole phone. These hostnames are the same hosts that appear in the DoH addresses in our family DNS servers table:

ProviderHostnameWhat it is
Cloudflare Familyfamily.cloudflare-dns.comFamily filter
AdGuard Familyfamily.adguard-dns.comFamily filter
Quad9dns.quad9.netBlocks known malicious sites
AdGuard DNSdns.adguard-dns.comAd blocking

Check the provider's own page before you rely on a hostname, since providers can change them. Do the steps below.

Stock Android (Pixel and similar)

  1. Open Settings.
  2. Tap Network & internet.
  3. Tap Private DNS.
  4. Choose Private DNS provider hostname and type the hostname.
  5. Tap Save.

Samsung (One UI)

  1. Open Settings.
  2. Tap Connections, then More connection settings.
  3. Tap Private DNS.
  4. Choose the hostname option, type the hostname and tap Save.

Xiaomi (MIUI and HyperOS)

  1. Open Settings.
  2. Tap Connection & sharing.
  3. Tap Private DNS.
  4. Choose the hostname option, type the hostname and tap Save.

Menu names can differ by phone model and Android version. If you cannot find the entry, use the search box at the top of Settings and search for "Private DNS".

Why must Private DNS be Off or Automatic with EZOBLOCKER?

EZOBLOCKER catches your phone's DNS lookups with a local tunnel, sends them encrypted (DoH) to its own servers and blocks the categories you picked there. Android's Private DNS setting takes priority over that. If a hostname is typed in, Android sends every DNS lookup straight to that server and EZOBLOCKER does not see it, so your categories filter nothing.

So the two are alternatives, not partners:

  1. To use EZOBLOCKER's categories, set Private DNS to Off or Automatic. In the app, Settings > Advanced shows the current Private DNS state and warns you if it needs fixing.
  2. To use only a public provider's filter through the phone's system setting, type its hostname and leave EZOBLOCKER off.

EZOBLOCKER can also use a public provider itself: Advanced > DNS provider. In that mode its own categories do not apply. See the family DNS servers guide for the details.

How do I check that it works?

Open the protection check in your phone's browser while EZOBLOCKER is on. It requests a small file from a control address and from a category address. If the control one loads and the category one does not, that category is being filtered through EZOBLOCKER. For what DNS filtering cannot do, such as YouTube video ads, see what DNS cannot block.

Setting up a family filter for a child's phone? Parental control covers the options, and the DNS changer page explains how EZOBLOCKER fits in.

Questions people ask

Does Private DNS slow my phone down?

This guide makes no speed claim. Private DNS only changes which server answers your DNS lookups and adds encryption to that step. Results depend on the provider and your network.

Which Private DNS setting should I use with EZOBLOCKER?

Off or Automatic. If a hostname is typed in Private DNS, Android sends every DNS lookup straight to that server and EZOBLOCKER does not see it, so its categories cannot filter anything.

Can I type an IP address into Private DNS?

No. Android's Private DNS field takes a hostname, for example family.cloudflare-dns.com, not an IP address.

Where is Private DNS on my phone?

On stock Android it is under Settings > Network & internet > Private DNS. Samsung and Xiaomi put it elsewhere, and menu names differ by model and version, so search for Private DNS in Settings if you cannot find it.