If websites load slowly, show outdated content, or fail to open even though your internet connection is fine, a corrupted or stale DNS cache is often the culprit. This guide shows you how to clear the DNS cache on Android, which forces your device to re-query DNS servers and can fix many browsing issues. You don’t need root access or special apps for most methods.
What You’ll Need
- Your Android phone or tablet
- Access to the Settings app
- Your Wi-Fi network password (if you plan to forget and rejoin the network)
- Optional: A third-party browser like Chrome or Firefox (for browser-specific cache clearing)
Step-by-Step
Method 1: Toggle Airplane Mode (Quickest)
- Swipe down from the top of the screen to open the Quick Settings panel.
- Tap the Airplane mode icon to turn it on. Wait about 10 seconds.
- Tap the same icon again to turn Airplane mode off.
- Your device will reconnect to the network and will typically flush its DNS cache during the reconnect.
Method 2: Restart Your Phone (Most Reliable)
- Press and hold the Power button until the power menu appears.
- Tap Restart or Reboot. If you don’t see those options, tap Power off, wait for the device to shut down completely, then press the Power button again to turn it back on.
- Once the device boots up, the DNS cache is cleared.
Method 3: Forget and Rejoin Your Wi-Fi Network
- Open the Settings app.
- Tap Network & internet (or Connections on Samsung devices).
- Tap Wi-Fi.
- Find the network you are connected to and tap the gear icon (⚙️) next to it.
- Tap Forget (or Forget network).
- Tap the network name again, enter the password, and reconnect.
Method 4: Change Your DNS Server (Forces a Cache Refresh)
- Go to Settings > Network & internet > Wi-Fi.
- Tap the gear icon next to your connected network.
- Tap IP settings and change it from DHCP to Static.
- Scroll down to DNS 1 and DNS 2. Enter a public DNS server like 8.8.8.8 and 8.8.4.4 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare).
- Tap Save. Your device will re-resolve all domain names using the new DNS server, effectively clearing the old cache.
- To revert, change IP settings back to DHCP.
Method 5: Clear Browser Cache (Chrome, Firefox, etc.)
- Open your browser (e.g., Chrome).
- Tap the three-dot menu (⋮) in the top-right corner.
- Tap History (or Settings > Privacy).
- Tap Clear browsing data.
- Select All time for the time range.
- Check Cached images and files (and optionally Cookies and site data).
- Tap Clear data.
Common Mistakes
- Only toggling Wi-Fi off/on: This often does not clear the DNS cache on many Android versions. Use Airplane mode or a full restart instead.
- Clearing browser cache but not the system cache: Browser cache is separate from the system DNS cache. If the issue persists in all apps, you need to clear the system cache via one of the first three methods.
- Forgetting to save after changing DNS: If you switch to Static IP and enter DNS values but don’t tap Save, the changes are lost.
- Using the wrong network: If you are on mobile data, forgetting a Wi-Fi network won’t help. You need to toggle Airplane mode or restart.
Tips
- Use a private DNS: Android 9+ supports Private DNS (Settings > Network & internet > Private DNS). Set it to a provider like
dns.googleorone.one.one.oneto bypass your ISP’s DNS entirely, which often has its own cache. - Check if the problem is DNS-related: Try opening a website by its IP address (e.g.,
http://142.250.190.78for Google) in a browser. If it loads, the issue is DNS resolution. - Use a DNS testing app: Apps like “DNS Changer” or “PingTools” can help you verify which DNS server you’re using and test resolution speed.
- Keep your device updated: Android updates often improve network stack handling, including DNS cache management.
Troubleshooting
If the above steps don’t fix the issue:
- Check if the problem is on the website’s side: Use a service like downforeveryoneorjustme.com to see if the site is down for everyone.
- Try a different network: Switch from Wi-Fi to mobile data (or vice versa). If the site loads on the other network, the issue is with your router or ISP’s DNS.
- Restart your router: Your router also caches DNS. Unplug it for 30 seconds and plug it back in.
- Clear the cache in Safe Mode: Boot your phone into Safe Mode (press and hold Power, then long-press “Power off” until the Safe Mode prompt appears). If the issue disappears, a third-party app is interfering. Uninstall recently installed apps.
- Check for system updates: Go to Settings > System > System update and install any pending updates.
- Factory reset as a last resort: Back up your data, then go to Settings > System > Reset options > Erase all data (factory reset). This will clear all caches and settings.
Frequently Asked Questions
Does clearing DNS cache delete my passwords or bookmarks?
No. Clearing the DNS cache only removes temporary IP address mappings. It does not affect your saved passwords, bookmarks, or any personal data.
Why can’t I clear DNS cache on Android like on Windows (ipconfig /flushdns)?
Android doesn’t expose a built-in command-line tool for flushing DNS without root access. The methods above are the official ways to achieve the same result.
Will this fix “ERR_NAME_NOT_RESOLVED” errors?
Often yes. That error means your device couldn’t translate a domain name to an IP address. Clearing a corrupted cache often resolves it.
Do I need root access to clear DNS cache?
No. All the methods in this guide work without root. Root access would allow you to use terminal commands like ndc resolver flushdefaultif, but it’s not necessary.
How often should I clear my DNS cache?
Only when you encounter DNS-related issues. There’s no need to clear it regularly, as Android manages the cache automatically.
Will changing my DNS server speed up my internet?
It can improve browsing speed by reducing the time it takes to resolve domain names, especially if your ISP’s DNS is slow. However, it won’t increase your raw download speed.
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
- Custom Alphanumeric Passcode iPhone: How to Set
- HomePod Software Update: How to Install
- How to Shuffle Photos in Slideshow on iPhone
- Quick Look Not Working on Mac? Fixes That Work
- How to See Deleted WhatsApp Messages on iPhone
- QUIC Protocol Error in Windows 10: Fixes