How to Change DNS Server on Android (Wi-Fi & Mobile Data)
In this article
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.8and8.8.4.4), Cloudflare (1.1.1.1and1.0.0.1), and Quad9 (9.9.9.9and149.112.112.112). - For mobile data: the hostname of a DNS provider that supports DNS-over-TLS, such as
dns.googleorone.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
- Open Settings on your phone.
- Tap Network & internet (on some phones this is just Connections or Wi-Fi).
- Tap Wi-Fi and make sure you are connected to the network you want to change.
- Tap the network name, or tap the gear icon next to it. If you see Modify network or a pencil icon, tap that.
- Expand Advanced options if it is collapsed.
- Find IP settings and change it from DHCP to Static. This reveals the DNS fields.
- 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.
- In DNS 1, enter your preferred DNS address (for example
1.1.1.1). In DNS 2, enter the secondary address (for example1.0.0.1). - Tap Save. The phone may briefly reconnect to Wi-Fi.
- Test it by opening a website in your browser. If pages load, the change worked.
Method 2: Change DNS for mobile data (Private DNS)
- Open Settings.
- Tap Network & internet.
- Tap Private DNS. On some phones this sits under Advanced or More connection settings.
- Select Private DNS provider hostname.
- Enter the hostname of your provider, for example
dns.googlefor Google DNS orone.one.one.onefor Cloudflare. Do not addhttps://or a path. - Tap Save.
- 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.