You can change the DNS servers your Android phone uses to a custom address like Google Public DNS (8.8.8.8) or Cloudflare (1.1.1.1) through the Wi-Fi network settings, and on newer Android versions, you can set a private DNS for all networks at once. This article shows you both methods, explains what DNS does, and helps you pick a safe, fast server. Whether you want to bypass a restrictive network filter, improve privacy, or fix a “DNS not resolving” error, the steps below work for most current Android phones (Android 9 and later).
What DNS Does and Why Change It
The Domain Name System (DNS) is the phone book of the internet. When you type a web address like example.com, your device asks a DNS server to translate that name into the numeric IP address of the website’s server. Your internet provider (ISP) normally assigns a DNS server automatically, but that server may be slow, log your browsing history, or block certain sites.
Changing to a different DNS server can give you:
- Faster lookups – some public DNS providers have large, well-connected networks that respond quicker.
- Better privacy – many public DNS services promise not to sell your browsing data.
- Bypass regional blocks – if your ISP’s DNS blocks a site, a public DNS may resolve it to the correct IP, though it won’t bypass IP-based geo-restrictions.
- Parental controls – services like OpenDNS offer filtering that blocks adult content or malware domains.
Method 1: Change DNS for a Single Wi-Fi Network
This method changes DNS only for the Wi-Fi network you are currently connected to. It works on all Android versions, including older ones.
- Open Settings and tap Wi‑Fi (or Network & internet → Wi‑Fi).
- Tap and hold the name of the connected network, then select Modify network.
- Tap Advanced options (usually a drop-down arrow).
- Change IP settings from DHCP to Static.
- In the DNS 1 and DNS 2 fields, enter your chosen server addresses (e.g., 8.8.8.8 and 8.8.4.4).
- Tap Save. The network will reconnect with the new DNS.
Note: Setting IP to static means your phone will no longer automatically receive the IP address, gateway, and DNS from the router. You must copy those values from the router (usually shown under “IP address”, “Gateway”, and “DNS” in the network details) before changing to static, otherwise you may lose internet access.
Method 2: Set a Private DNS (Android 9 and Later)
Android’s Private DNS feature lets you set a DNS server that works for every network (Wi‑Fi and mobile data) without needing to configure each one. It uses DNS over TLS, which encrypts your DNS queries.
- Open Settings → Network & internet → Private DNS.
- Select Private DNS provider hostname.
- Enter the hostname of your chosen DNS service (for example,
dns.googlefor Google,one.one.one.onefor Cloudflare, ordns.quad9.netfor Quad9). - Tap Save.
You cannot enter an IP address here; it must be a hostname that supports DNS over TLS. If you use a service that doesn’t provide a hostname, you’ll need to use Method 1 instead.
How to Choose a DNS Server
There are several well-known public DNS providers. Each has different priorities:
- Google Public DNS – 8.8.8.8 and 8.8.4.4. Fast and reliable, but Google logs some data (anonymized after 24 hours).
- Cloudflare – 1.1.1.1 and 1.0.0.1. Emphasizes privacy; claims to delete logs within 24 hours.
- Quad9 – 9.9.9.9. Blocks known malicious domains, good for security.
- OpenDNS – 208.67.222.222 and 208.67.220.220. Offers parental control filters (you can configure them on their website).
For most users, Google or Cloudflare are safe, fast choices. If you want to test which is fastest for your location, you can use a DNS benchmarking app, but a simple trial of a few days will also give you a sense of speed and reliability.
Common Problems and How to Fix Them
- “Can’t connect” after setting static IP – You likely entered the wrong gateway or IP. Go back to the network settings, select DHCP again, reconnect, and then try Method 2 instead.
- Private DNS not working – Some networks (like public Wi‑Fi) block DNS over TLS. Switch to Method 1 for that network, or use a VPN.
- Websites still blocked – Changing DNS does not hide your IP address or bypass region locks. If a site is blocked by IP or by the government, you need a VPN, not a DNS change.
- DNS server not responding – Try a different server address. Sometimes a specific provider is down or blocked in your region.
Safety and Privacy Considerations
Changing DNS is generally safe, but be aware of a few things:
- Your DNS provider can see every domain you visit (though not the full URLs). Choose a provider with a clear privacy policy.
- DNS over TLS (Private DNS) encrypts your queries, so your ISP cannot see them, but the DNS provider still can.
- Avoid using unknown DNS servers from random websites – they could be malicious and redirect you to phishing sites.
- Changing DNS does not protect you from malware or viruses; it only helps block known bad domains if you use a filtering service.
Alternatives to Changing DNS
If your goal is privacy or bypassing blocks, a VPN is a more complete solution because it encrypts all traffic, not just DNS. If you only want to block ads or trackers, you could use a browser with built-in ad blocking, or a local DNS-based ad blocker like Blokada (which runs on your device). For parental controls, you can also configure filtering on your router, which affects all devices on your home network.
Frequently Asked Questions
Will changing DNS void my warranty?
No. Changing DNS is a standard network setting, like changing your Wi‑Fi password. It does not affect your phone’s hardware or software warranty.
Can I set different DNS for mobile data?
On most Android phones, you cannot set DNS for mobile data directly. The Private DNS method works for mobile data as well, but if you want a specific server for a specific APN, you may need to use a third-party app or root your phone.
Does changing DNS speed up my internet?
It can speed up the initial resolution of website names, but it won’t increase your download or upload speed. If your ISP’s DNS is slow, a faster public DNS may make pages load a bit quicker.
How do I reset DNS settings back to default?
For Wi‑Fi, go back to the network’s advanced settings and set IP settings back to DHCP. For Private DNS, go to Settings → Network & internet → Private DNS and select Off (or Automatic).
Is it safe to use a public DNS like 8.8.8.8?
Yes, Google Public DNS is widely used and trustworthy. However, it does log some data, so if privacy is your top concern, choose a provider with a no-log policy like Cloudflare or Quad9.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Apps Not Downloading From Play Store
- Secure a Samsung Galaxy After a Zero-Day Disclosure
- What to Check Before Installing Linux Alongside Windows
- Fix OEM Activation Error 0xc004c060 in Windows 10
- Why Does My App Run One Query for the List and One per Item?
- Fix Google Chrome Has Stopped Working