Changing your DNS server on Android can resolve connectivity problems on Wi-Fi. If you recently upgraded to one of the best value data plans and encountered issues with roaming, explore a different troubleshooting avenue. You can't change your mobile data DNS server without rooting your phone.

DNS servers translate domain names into IP addresses. If they fail, you can't access websites or find results in a search engine. Diagnosing whether the DNS server is causing problems can be tricky, but the fix is quick and easy. You can change your DNS server on any Android device, including phones, Chromebooks, and the best cheap tablets.

Why does your DNS server matter?

Like any server, DNS servers encounter technical problems throughout their lifespan. This can impact your connection quality. You usually don't need to reset your DNS server to fix connectivity issues, but occasionally it's necessary.

Your internet provider chooses your default DNS server. If you connect to a different router, your DNS server changes. Changing your DNS server on Android overrides this default server, but anyone else connecting to the router uses the default DNS server.

If all your home devices encounter DNS connectivity issues, change your DNS server at the router level. The method for changing this varies for each router. Read the documentation for your router to find your DNS settings.

When you're ready to start, you'll need a primary and secondary DNS address. For this guide, we use the Google Public DNS server. On Android, enter dns.google to switch servers. You may need the IPv4 or IPv6 address provided in the table below on non-Android devices:

IPv4

IPv6

Primary

8.8.8.8

2001:4860:4860::8888

Secondary

8.8.4.4

2001:4860:4860::8844

It doesn't matter which address you assign as Primary or Secondary.

If you wish to use an alternative DNS server, have its hostname and addresses ready. These should be displayed in the same format as the addresses shown above.

The IPv6 address format above is an abbreviated address that works for most devices. Some require explicit values. If the abbreviated address doesn't work, try these formats:

Regular: 2001:4860:4860::8888

Expanded: 2001:4860:4860:0:0:0:0:8888

Fully Expanded: 2001:4860:4860:0000:0000:0000:0000:8888

How to flush your DNS cache

Before changing your DNS server, flush it. Your DNS server's cache might be full. Clearing this can speed up your browsing without changing your server.

  1. Open Google Chrome. If you don't use Chrome, your browser of choice has documentation on how to access DNS settings.
  2. Enter chrome://net-internals/#dns into the address bar.
  3. Tap Clear host cache.
  4. Restart your device.

If your browsing experience is still slow, move on to switching DNS servers.

How to switch DNS servers on Android

If clearing the cache doesn't work, switch to another DNS server. Here's how:

  1. Open the Settings app on your Android device.
  2. Select Network & Internet.
  3. Scroll down and tap Private DNS.
  4. Select the Private DNS provider hostname.
  5. Enter a DNS provider hostname (for example, dns.google).
  6. Tap Save.

Open a web browser and load a web page. If it loads, you've successfully switched your DNS server.

Keep this DNS trick handy

Switching your DNS server can improve connectivity regardless of what Wi-Fi network you connect to. It's useful when traveling. Changing your DNS server doesn't improve your browsing security. To make your browsing sessions more secure, use one of the top VPNs for Android. You may also follow these tips to protect your digital privacy on Android.