TechBuzzPro

How to Change DNS Server on Android (Wi-Fi & Mobile Data)

· 5 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can change the DNS server on Android for Wi-Fi in a few taps, but mobile data is a different story: most phones only let you set a private DNS hostname, not a raw IP address. For Wi-Fi, open Settings > Network & internet > Wi-Fi, tap your network, choose Modify network (or the pencil icon), open Advanced options, change IP settings to Static, and enter your DNS addresses in DNS 1 and DNS 2. For mobile data, go to Settings > Network & internet > Private DNS and enter a provider hostname such as dns.google or one.one.one.one. Labels vary slightly by Android version, manufacturer and region, so look for the closest match on your phone.

What You'll Need

  • Your Android phone unlocked and connected to the Wi-Fi network you want to change (for the Wi-Fi method).
  • The DNS addresses you plan to use. Common public options are Google (8.8.8.8 and 8.8.4.4), Cloudflare (1.1.1.1 and 1.0.0.1), and Quad9 (9.9.9.9 and 149.112.112.112).
  • For mobile data: the hostname of a DNS provider that supports DNS-over-TLS, such as dns.google or one.one.one.one. An IP address alone usually will not work in the Private DNS field.
  • Your Wi-Fi password, in case you need to reconnect after changing settings.

Step-by-Step

Method 1: Change DNS for a Wi-Fi network

  1. Open Settings on your phone.
  2. Tap Network & internet (on some phones this is just Connections or Wi-Fi).
  3. Tap Wi-Fi and make sure you are connected to the network you want to change.
  4. Tap the network name, or tap the gear icon next to it. If you see Modify network or a pencil icon, tap that.
  5. Expand Advanced options if it is collapsed.
  6. Find IP settings and change it from DHCP to Static. This reveals the DNS fields.
  7. Leave the IP address, gateway and subnet mask as they are unless you know they need changing. Changing them incorrectly can disconnect you from the network.
  8. In DNS 1, enter your preferred DNS address (for example 1.1.1.1). In DNS 2, enter the secondary address (for example 1.0.0.1).
  9. Tap Save. The phone may briefly reconnect to Wi-Fi.
  10. Test it by opening a website in your browser. If pages load, the change worked.

Method 2: Change DNS for mobile data (Private DNS)

  1. Open Settings.
  2. Tap Network & internet.
  3. Tap Private DNS. On some phones this sits under Advanced or More connection settings.
  4. Select Private DNS provider hostname.
  5. Enter the hostname of your provider, for example dns.google for Google DNS or one.one.one.one for Cloudflare. Do not add https:// or a path.
  6. Tap Save.
  7. Turn Wi-Fi off so the phone uses mobile data, then open a website to confirm it loads.

Private DNS applies to both Wi-Fi and mobile data on most Android phones, so if you set it, you may not need the Wi-Fi method at all. The Wi-Fi method is useful when you want a specific DNS server only on one network, or when your phone does not offer Private DNS.

Common Mistakes

  • Entering an IP address in Private DNS. The Private DNS field expects a hostname, not an IP. Use the provider's hostname instead.
  • Changing the IP address, gateway or subnet when switching to Static. Only the DNS fields need to change. Altering the others can cut your connection.
  • Forgetting the secondary DNS. If the first server is unreachable, the phone has no fallback and pages may fail to load.
  • Typing the address wrong. A single wrong digit sends queries nowhere. Double-check each number.
  • Expecting faster speeds everywhere. DNS affects how quickly names resolve, not your raw download speed. A slow connection stays slow.
  • Assuming the setting applies to all apps. Some apps use their own DNS or encrypted connections and may ignore the system setting.

Tips

  • Write down your original settings before changing anything, so you can switch back to DHCP if needed.
  • Use Private DNS when you can: it encrypts DNS queries and covers both Wi-Fi and mobile data.
  • If you travel or use public Wi-Fi often, Private DNS is the simpler option because it follows you across networks.
  • To undo the Wi-Fi change, set IP settings back to DHCP and save.
  • To undo Private DNS, open the same screen and choose Automatic or Off.

Troubleshooting

If pages stop loading after the change, the first fix is to revert: set IP settings back to DHCP, or set Private DNS to Automatic. Then reconnect to Wi-Fi or toggle airplane mode on and off.

If only some sites fail, the DNS address may be mistyped or the provider may be blocking a domain. Try a different public DNS pair and save again.

If Private DNS shows a notification that the server cannot be reached, the hostname is likely wrong or the network is blocking DNS-over-TLS. Switch back to Automatic and use the Wi-Fi method instead.

If the Wi-Fi network will not reconnect after switching to Static, your router may require a different gateway or subnet. Revert to DHCP, then check the router's settings before trying again.

If nothing changes at all, restart the phone. Settings sometimes need a reboot to take effect, especially after switching between DHCP and Static.

Frequently Asked Questions

Does changing DNS work on mobile data?

Yes, but usually only through Private DNS with a hostname. Most Android phones do not let you enter a raw IP address for mobile data.

Will a custom DNS make my internet faster?

It can make website lookups feel quicker, but it does not increase your connection speed. If your provider's DNS is slow or unreliable, a public one may help.

Is Private DNS the same as a VPN?

No. Private DNS encrypts only the name-resolution step. A VPN routes all your traffic through another server.

Can I use different DNS servers for Wi-Fi and mobile data?

Yes. The Wi-Fi method sets DNS per network, while Private DNS applies system-wide. If both are set, the Wi-Fi setting usually takes priority on that network.

Will changing DNS break my phone?

No. It is a reversible setting. If something stops working, switch back to DHCP or Automatic.

Do I need root to change DNS?

No. Both methods above work on a standard, unrooted Android phone.