How to Turn On Private DNS Mode on Android
In this article
Yes, you can turn on Private DNS mode on Android to encrypt your DNS queries and help prevent eavesdropping on your browsing activity. The setting is built into Android 9 and newer, and it works with any DNS provider that supports DNS-over-TLS. Here’s the shortest path: go to Settings > Network & Internet > Private DNS, select Private DNS provider hostname, enter a valid hostname (like dns.google), and tap Save. The exact menu labels can differ slightly by device and Android version, but the steps below cover the standard path.
What You'll Need
- An Android device running Android 9 (Pie) or later.
- A DNS-over-TLS provider hostname. You can use a public one like
dns.google(Google),one.one.one.one(Cloudflare), ordns.quad9.net(Quad9). - No root access or third-party apps are required—this is a native Android feature.
Step-by-Step
- Open your device's Settings. Look for the gear icon in your app drawer or notification shade.
- Find the Network & Internet section. On stock Android, it’s usually labeled Network & Internet. On Samsung devices, it might be under Connections. On some other brands, it could be called Wi-Fi & Network or just Network. If you don’t see it, use the search bar in Settings and type “Private DNS”.
- Tap on Private DNS. It’s usually near the bottom of the Network & Internet menu. If you searched, just tap the result.
- Select “Private DNS provider hostname”. You’ll see three options: “Off”, “Automatic”, and “Private DNS provider hostname”. Choose the third one.
- Enter the hostname of your DNS provider. Type it exactly. For example,
dns.googleorone.one.one.one. Do not include “https://” or any slashes—just the plain hostname. - Tap Save or Apply. The button might be at the top or bottom of the screen. After saving, your Android device will use that DNS server for all network connections (Wi-Fi and mobile data).
- Verify it’s working. You can check by visiting a site like 1.1.1.1/help (Cloudflare’s test page) or dns.google/resolve—they’ll show whether your DNS is encrypted.
Common Mistakes
- Entering a URL instead of a hostname. You must type just the hostname (e.g.,
dns.google), nothttps://dns.googleordns.google.com/. - Using a provider that doesn’t support DNS-over-TLS. Not all DNS servers support this protocol. If you enter a hostname that doesn’t support DoT, Android will show a “Can’t connect” error or silently fall back to unencrypted DNS.
- Choosing “Automatic” thinking it’s private. “Automatic” uses your carrier’s default DNS, which may or may not be encrypted. To force privacy, you must select “Private DNS provider hostname”.
- Typing a space or capital letters. Hostnames are case-insensitive but should be lowercase for consistency. Avoid spaces.
- Forgetting to save. If you back out without tapping Save, the setting won’t apply.
Tips
- Use a reputable provider. Google, Cloudflare, and Quad9 are well-known and have clear privacy policies. Avoid unknown providers that might log your queries.
- Remember the hostname. Write it down or save it in a note. You’ll need it if you ever re-enter the setting.
- Private DNS works on both Wi-Fi and mobile data. It’s a system-wide setting, so you don’t need to configure each network separately.
- If you use a VPN, the VPN’s DNS might override Private DNS. Some VPNs handle DNS themselves. If you want Private DNS to take precedence, you may need to adjust the VPN’s settings.
- You can switch back to “Automatic” anytime. If you experience issues, that’s the quickest way to restore default behavior.
Troubleshooting
If you’ve set Private DNS but it’s not working, try these in order:
- Check the hostname. Re-type it carefully. A single typo will break the connection.
- Restart your device. Sometimes the network stack needs a refresh.
- Toggle the setting off and on. Switch to “Off”, save, then back to “Private DNS provider hostname” and re-enter the hostname.
- Try a different provider. If one hostname fails, try another (e.g., switch from
dns.googletoone.one.one.one). - Check your internet connection. If you’re offline, the setting won’t work. Connect to Wi-Fi or mobile data first.
- Reset network settings. As a last resort, you can reset your network settings (Settings > System > Reset options > Reset Wi-Fi, mobile & Bluetooth). This will forget saved Wi-Fi networks and paired Bluetooth devices, so use it only if necessary.
If none of that works, your device or carrier might be blocking DNS-over-TLS. In that case, you can use a third-party app like DNS66 or Intra that creates a local VPN to encrypt DNS—but note that these apps may require more setup and can drain battery.
Frequently Asked Questions
Does Private DNS slow down my internet?
Usually no. The encryption overhead is minimal, and many public DNS providers are faster than your carrier’s default. You might see a slight improvement in response times if your default DNS is slow.
Will Private DNS hide my browsing history from my ISP?
It hides the domain names you visit from your ISP (because DNS queries are encrypted), but your ISP can still see the IP addresses you connect to and the amount of data transferred. It doesn’t hide your traffic from the DNS provider itself—that provider sees your queries.
Can I use Private DNS with any Android phone?
If your phone runs Android 9 or later, yes. Older Android versions don’t have this native setting, but you can use third-party apps for similar functionality.
What’s the difference between “Automatic” and “Private DNS provider hostname”?
“Automatic” lets the system choose DNS based on your network (usually your carrier’s). “Private DNS provider hostname” forces a specific provider and encrypts all DNS queries, even if the network’s default DNS doesn’t support encryption.
Is it safe to use a public DNS like Google or Cloudflare?
Yes, they are reputable companies with published privacy policies. However, they do log some data (like timestamps and IP addresses) for security and debugging. Read their policies to understand what’s collected.
Will Private DNS affect my ability to access local network devices?
It can. If you use a local DNS server for devices on your home network (like a NAS or a smart home hub), Private DNS might bypass it. In that case, you can set the Private DNS hostname to your local server’s hostname if it supports DoT, or use “Automatic” for your home Wi-Fi and Private DNS for other networks.