Google DNS And OpenDNS On Android: How To Change DNS (2027)
Android has two separate places to change DNS, and the steps differ depending on which one you use.
Private DNS covers the whole phone on Wi-Fi and mobile data, while a static DNS entry covers one Wi-Fi network only.
Either way, switching to Google Public DNS or OpenDNS takes about two minutes, and this guide covers both as of December 2026.
Table of Contents
- Which Android DNS method should you use?
- Why Private DNS needs a hostname and not an IP address
- How to set Google DNS with Private DNS
- Where Private DNS is on a Samsung Galaxy
- How to set Google DNS or OpenDNS on one Wi-Fi network
- What are the Google DNS and OpenDNS addresses?
- Can you use OpenDNS with Private DNS?
- Why does the internet stop after changing DNS?
- How to switch back to your default DNS
- What DNS changes do and do not do
- Related fixes
Which Android DNS method should you use?
| Method | What you enter | Works on | Android version | Best for |
|---|---|---|---|---|
| Private DNS | A hostname such as dns.google | Wi-Fi and mobile data | 9 or later | Google DNS on the whole phone |
| Static DNS | Two IP addresses | One Wi-Fi network | Most versions | OpenDNS, or phones without Private DNS |
| Router DNS | Two IP addresses on the router | Every device at home | Not applicable | Filtering the whole household |
Why Private DNS needs a hostname and not an IP address
Private DNS uses DNS over TLS, and Android checks the server by its hostname.
That means typing 8.8.8.8 into the Private DNS box will not work.
If the phone cannot reach the hostname you saved, Android marks the network as having no internet access.
How to set Google DNS with Private DNS
This is the quickest way to use Google Public DNS on Android 9 or later.
- Open Settings.
- Tap Network & internet, then Private DNS.
- Select Private DNS provider hostname.
- Type
dns.google. - Tap Save.
Google’s own help page also lists Off and Automatic as the other two choices.
Where Private DNS is on a Samsung Galaxy
Samsung moves the setting out of the Network menu.
On Galaxy phones, go to Settings → Connections → More connection settings → Private DNS.
The three options and the Save button work the same way as on a Pixel.
If you cannot find it on any phone, search Settings for “Private DNS”.
How to set Google DNS or OpenDNS on one Wi-Fi network
Use this method for OpenDNS, because it only needs the IP addresses.
- Open Settings → Network & internet → Wi-Fi.
- Tap the gear next to your network, or long-press the network name and choose Modify network.
- Open Advanced options.
- Change IP settings from DHCP to Static.
- Fill in the IP address, gateway and prefix length, then enter the two DNS servers.
- Tap Save.
This change only applies to that Wi-Fi network, so mobile data keeps its normal DNS.
What are the Google DNS and OpenDNS addresses?
| Service | Primary | Secondary | IPv6 | Private DNS hostname |
|---|---|---|---|---|
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | 2001:4860:4860::8888 and 2001:4860:4860::8844 | dns.google |
| OpenDNS Home | 208.67.222.222 | 208.67.220.220 | None listed by Cisco | Not officially listed |
| OpenDNS FamilyShield | 208.67.222.123 | 208.67.220.123 | None listed by Cisco | Not officially listed |
Google also notes that some devices want the IPv6 addresses written out in the full eight-field form.
Can you use OpenDNS with Private DNS?
Cisco says its Umbrella resolvers support DNS over TLS, but it does not publish a Private DNS hostname for the free OpenDNS service.
A Cisco community thread reports that dns.opendns.com works as a DoT resolver on Android 10, so you can try it.
If the network then shows no internet, switch Private DNS back to Automatic and use the static IP method instead.
Why does the internet stop after changing DNS?
| Symptom | Likely cause | Fix |
|---|---|---|
| Wi-Fi says no internet after saving a hostname | Phone cannot reach that DNS provider | Re-check the spelling, or set Private DNS to Automatic |
| Hostname works at home but not at work or school | The network blocks encrypted DNS | Set Private DNS to Off or Automatic on that network |
| Static DNS saved but nothing loads | Wrong gateway or IP address | Switch IP settings back to DHCP |
| Setting ignored | A VPN or DNS-changer app is active | Turn the app off, since Google warns these can bypass the setting |
How to switch back to your default DNS
- Private DNS: set it to Automatic or Off and tap Save.
- Static DNS: open the same Wi-Fi network screen and set IP settings back to DHCP.
- Router DNS: restore the automatic option in the router’s admin page.
Turn Wi-Fi off and on afterward so the phone reconnects with the new settings.
What DNS changes do and do not do
A new DNS server can change which resolver answers your lookups, and Private DNS encrypts those lookups.
Google’s help page says Private DNS secures only DNS questions and answers, not the rest of your traffic.
It will not hide your activity from your carrier the way a VPN does, and it will not speed up a weak signal.
Related fixes
If DNS is not the problem, try fixing Wi-Fi connected but no internet on a Galaxy S26 or fixing mobile data that stopped working.
Console owners can follow the guide to change PS5 DNS settings.
Official references: Google Public DNS setup, Android Private DNS help, and OpenDNS setup.
Doesn’t work for opendns in android 12. It won’t take just an ip address.
As above
You repeated whole blocks about DNS Three times before you actually answered the question- whats dns. What the?r