DNS & ISP

How to Set Up Private DNS on iPhone and Android

Every phone sends a DNS lookup for each site and app it opens, and by default those lookups go unencrypted to your carrier or Wi-Fi network. Private DNS encrypts them and can block ads and trackers at the same time.

Last updated October 14, 2026 · By Harbor Privacy

Why Change It

Your phone's default DNS belongs to whichever network you are on. Your carrier, a coffee shop, or a hotel can all see and log every site you look up, even when the sites use HTTPS. Switching to encrypted DNS hides those lookups from the network, and a provider with filtering can block ad and tracker domains for every app on the phone. Background in DNS Privacy.

The Two Encrypted Types

  • DNS over HTTPS (DoH). Looks like ordinary web traffic. Supported by iOS profiles and by apps on Android.
  • DNS over TLS (DoT). Uses a dedicated port. Android's built-in Private DNS setting uses this type and takes a hostname.

Which one you use depends on what your DNS provider offers and what your phone supports.

iPhone and iPad

01
Get your DNS profileProviders that support iOS give you a downloadable configuration profile with your settings built in.
02
Download and allow itOpen the file and tap Allow when asked.
03
Install itGo to Settings, then General, then VPN & Device Management, and tap the profile. Tap Install and enter your passcode.
04
ConfirmOpen the profile again and check that it shows as installed. It applies on Wi-Fi and cellular.

The profile only changes DNS. You can remove it any time from the same Settings screen.

Android

Android has a built-in Private DNS setting, under Settings, Network and internet, Private DNS. It accepts a DNS over TLS hostname. If your provider gives you a DoT hostname, enter it there and you are done.

If your provider uses a personal DNS over HTTPS address instead, use an app that supports a custom DoH server, such as Intra, which is free and made by Google Jigsaw. Open Intra, choose a custom DNS over HTTPS server, paste your address, and switch it on.

Check That It Works

Open the DNS Checker in your phone's browser to see which DNS resolver your connection is using, and run the Adblock Test to see whether ad and tracker domains are blocked.

Common Problems

  • Switching networks. Some Wi-Fi networks, such as hotel portals, block encrypted DNS until you sign in. Open the sign-in page first.
  • Work or school profiles. A managed phone may restrict DNS or profile changes.
  • A VPN running at the same time. Many VPNs use their own DNS and override yours while connected.

Related guides: DNS leaks, Best DNS servers for privacy, DoH vs DoT.

Common Questions

Does private DNS hide my browsing from my carrier?
It hides the site names you look up. The carrier can still see the IP addresses you connect to, which is why a VPN hides more.
Will private DNS slow my phone down?
Usually not. A good resolver is as fast as the default and blocked ads never load.
Will it work on cellular and Wi-Fi?
Yes. The setting follows the phone on any network, unlike a router setting that only covers home.
What if a site or app stops working?
A blocklist may be catching a domain it needs. Ask your provider to allow it, or turn the setting off briefly to confirm.
PRIVATE DNS FOR YOUR PHONE

Harbor Adblock gives you a personal encrypted DNS address and an iPhone profile, with ad and tracker blocking, from $1.99 a month with a 30-day free trial. See Harbor Adblock.

Harbor Privacy
Cut Big Tech out of your home network.

Encrypted DNS and network-level blocking of trackers and ads on every device, set up in minutes. No technical skills required.

See plans →