Enable Private DNS on Android – Complete Tutorial
12 min read
Step‑by‑step guide to turn on Android’s Private DNS (DNS‑over‑TLS), choose a trusted provider, test the connection and troubleshoot common issues.
October 10, 2026 14:00
Why you should care about DNS on Android
Every time you open a website or use an app that contacts a server, your device first asks a DNS (Domain Name System) server to translate the human‑readable domain (e.g., example.com) into an IP address. By default Android uses the DNS servers supplied by your carrier or Wi‑Fi router, which are often unencrypted and can be observed or manipulated by ISPs, public Wi‑Fi operators, or malicious actors.
Private DNS, introduced in Android 9 (Pie), encrypts those queries with DNS‑over‑TLS (DoT). The traffic is wrapped inside a TLS tunnel, preventing passive eavesdropping and many active attacks. Enabling it is a quick win for privacy without installing third‑party VPNs or rooting the phone.
Before you start
- Android version: Private DNS is available on Android 9 (Pie) and newer. If you run an older version, you’ll need a third‑party app (e.g., Intra) – see the “Alternative method” section.
- Network connection: Make sure you are connected to Wi‑Fi or mobile data that can reach the internet.
- Backup your settings: Changing DNS does not affect personal data, but note the current DNS configuration in case you need to revert.
- Choose a trusted DNS provider: You’ll need the provider’s DoT hostname (e.g.,
dns.google). The tutorial lists a few reputable options.
Understanding Private DNS modes
Android offers two modes under Settings → Network & Internet → Advanced → Private DNS:
- Automatic: The system tries to use DNS‑over‑TLS if the network advertises it. This is the default and works on many modern Wi‑Fi routers.
- Private DNS provider hostname: You manually enter a DoT hostname. The system forces all DNS queries through that provider, regardless of the network.
For most users the second option gives the most reliable privacy because it does not depend on the router’s capabilities.
Step‑by‑step: Enabling Private DNS
Step 1 – Confirm your Android version
Open Settings → About phone → Android version. If the version number is 9.0 or higher, you can use the built‑in Private DNS feature.
Step 2 – Open the Private DNS screen
Navigate to Settings → Network & Internet. Depending on the OEM, you may see a Advanced dropdown; tap it if necessary. Then tap Private DNS.
Step 3 – Choose a provider
Pick one of the providers listed below. Copy the exact hostname (case‑insensitive, no trailing slash).
- Google:
dns.google
- Cloudflare:
1dot1dot1dot1.cloudflare-dns.com
- Quad9:
dns.quad9.net
- CleanBrowsing (Adult‑filtered):
family-filter-dns.cleanbrowsing.org
If you have a corporate or custom DNS server that supports DoT, use its hostname instead.
Step 4 – Enter the hostname
Select the radio button for Private DNS provider hostname. In the text field that appears, paste the hostname you chose (e.g., dns.google) and tap Save or OK.
On some OEM skins the button may be labeled Apply instead of Save.
Step 5 – Verify the setting applied
After saving, the screen should display the hostname you entered under the Private DNS status. If you see a red warning icon or the text "Failed to connect", the hostname is unreachable or the network blocks TLS on port 853.
How to test that DNS‑over‑TLS is really working
Simply seeing the hostname in the settings does not guarantee that traffic is encrypted. Use one of the following methods to confirm.
Method A – Online DNS‑Leak test
- Open a browser and go to dnsleaktest.com (or any similar site).
- Tap Standard test. The result page lists the DNS resolvers that answered your queries.
- If the listed IP addresses belong to the provider you configured (e.g., Cloudflare’s 1.1.1.1), the DoT tunnel is active.
You can also run the Extended test for a more thorough check.
Method B – Using Termux and dig
If you have Termux installed, you can query a domain directly over TLS:
pkg install bind-utils
dig +tls=853 @dns.google example.com
The output should show an answer section with the IP address of example.com. If you get a timeout, the TLS connection failed.
Method C – Android’s built‑in network diagnostics
Some OEMs (e.g., Samsung) include a Network diagnostics tool under Settings → Developer options. Look for a line that says "Private DNS: dns.google (active)".
Alternative method for Android 8 and older
If your device runs Android 8 or earlier, the native Private DNS option is unavailable. In that case you can achieve similar protection with a lightweight app that creates a local VPN and forwards DNS over TLS.
- Intra (by Jigsaw) – free, no‑root, supports Cloudflare, Google, Quad9.
- Nebulo – offers custom DoT hosts and DNS‑over‑HTTPS fallback.
Install the app from the Play Store, grant VPN permission, and select the same provider hostname you would use in the native setting. The app will route DNS queries through TLS while leaving other traffic untouched.
Troubleshooting common issues
Warning: Changing DNS does not affect apps that use hard‑coded IP addresses or their own DNS resolvers. Those apps will bypass Private DNS.
1. "Failed to connect" after saving the hostname
- Check network blocks: Some mobile carriers or public Wi‑Fi networks block outbound traffic on port 853. Switch to a different network or use a VPN that allows TLS.
- Typo in hostname: Ensure there are no spaces or extra characters. The hostname must be exactly as listed by the provider.
- Provider outage: Verify the provider’s status page; occasionally DoT servers experience downtime.
2. DNS queries still resolve to your ISP’s servers
- App‑specific DNS: Some browsers (e.g., Firefox) can be configured to use DNS‑over‑HTTPS independently. Check the app’s network settings.
- VPN interference: If a VPN is active, it may replace the DNS path. Disable the VPN or configure it to respect the system DNS.
- Device reboot: After changing the setting, a quick restart ensures all system services pick up the new resolver.
3. Certain websites fail to load
Occasionally a website’s CDN does not respond correctly to queries from a specific DoT provider. To isolate the problem:
- Temporarily switch the Private DNS hostname back to
dns.google (or another provider).
- Clear the browser cache.
- Reload the site. If it works, the issue is with the previous provider’s resolution for that domain.
If the problem persists across providers, the cause is likely unrelated to DNS (e.g., HTTP block, captive portal).
Advanced: Using Private DNS with per‑network overrides
Android’s native Private DNS applies system‑wide; you cannot set a different DoT server for a single Wi‑Fi network without third‑party tools. However, you can combine Private DNS with a per‑network static DNS configuration (available on some OEMs) to achieve a fallback strategy:
- Enable Private DNS with a trusted provider (e.g., Cloudflare).
- On a specific Wi‑Fi network, go to Settings → Network & Internet → Wi‑Fi, long‑press the network name, tap Modify network, expand Advanced options**, and set IP settings to Static. Enter the provider’s plain DNS IP (e.g., 1.1.1.1) as the primary DNS.
- The device will first attempt encrypted DoT; if that fails, it falls back to the static IP, ensuring connectivity.
This hybrid approach is useful on networks that block TLS on port 853 but still allow regular DNS.
Security and privacy considerations
- Private DNS encrypts only the DNS query, not the rest of your traffic. For full‑device privacy you still need a VPN or Tor.
- The provider you choose can see every domain you query. Pick a provider with a clear privacy policy (e.g., Cloudflare promises not to log IP‑linked queries).
- DoT does not protect against DNS‑based attacks that exploit malicious responses from a compromised resolver. Using DNSSEC‑validating resolvers (most major providers support it) mitigates this risk.
Wrap‑up
Enabling Private DNS on Android is a straightforward, no‑root way to add encryption to one of the most exposed parts of your internet traffic. By following the steps above you can select a trustworthy DoT provider, confirm the tunnel is active, and troubleshoot the few hiccups that occasionally appear on restrictive networks. Remember that Private DNS is a privacy layer, not a complete security solution—combine it with a reputable VPN if you need end‑to‑end encryption.
Now you can browse, stream, and use apps with confidence that your DNS lookups are shielded from prying eyes.