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?

MethodWhat you enterWorks onAndroid versionBest for
Private DNSA hostname such as dns.googleWi-Fi and mobile data9 or laterGoogle DNS on the whole phone
Static DNSTwo IP addressesOne Wi-Fi networkMost versionsOpenDNS, or phones without Private DNS
Router DNSTwo IP addresses on the routerEvery device at homeNot applicableFiltering 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.

1. Private DNSHostname only, whole phone, encrypted.
2. Static DNSIP addresses, one Wi-Fi network, not encrypted.
3. Router DNSIP addresses, every device on that router.

How to set Google DNS with Private DNS

This is the quickest way to use Google Public DNS on Android 9 or later.

  1. Open Settings.
  2. Tap Network & internet, then Private DNS.
  3. Select Private DNS provider hostname.
  4. Type dns.google.
  5. 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.

  1. Open Settings → Network & internet → Wi-Fi.
  2. Tap the gear next to your network, or long-press the network name and choose Modify network.
  3. Open Advanced options.
  4. Change IP settings from DHCP to Static.
  5. Fill in the IP address, gateway and prefix length, then enter the two DNS servers.
  6. Tap Save.
Heads up: a static setup replaces the automatic one, so copy your phone’s current IP address and the router’s gateway address before you switch.

This change only applies to that Wi-Fi network, so mobile data keeps its normal DNS.

What are the Google DNS and OpenDNS addresses?

ServicePrimarySecondaryIPv6Private DNS hostname
Google Public DNS8.8.8.88.8.4.42001:4860:4860::8888 and 2001:4860:4860::8844dns.google
OpenDNS Home208.67.222.222208.67.220.220None listed by CiscoNot officially listed
OpenDNS FamilyShield208.67.222.123208.67.220.123None listed by CiscoNot 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?

SymptomLikely causeFix
Wi-Fi says no internet after saving a hostnamePhone cannot reach that DNS providerRe-check the spelling, or set Private DNS to Automatic
Hostname works at home but not at work or schoolThe network blocks encrypted DNSSet Private DNS to Off or Automatic on that network
Static DNS saved but nothing loadsWrong gateway or IP addressSwitch IP settings back to DHCP
Setting ignoredA VPN or DNS-changer app is activeTurn 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.

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.

3 Comments

  1. You repeated whole blocks about DNS Three times before you actually answered the question- whats dns. What the?r

Leave a Reply

Your email address will not be published. Required fields are marked *