sodcalculator

10 Tech How-To

How to Clear DNS Cache on Android Devices

Guide 10-59432 · Updated · Step by step

If you’re seeing outdated websites, connection errors, or pages that won’t load after a network change, a stale DNS cache on your Android device is often the culprit. This guide shows you the exact steps to flush the DNS cache on both stock Android and Samsung Galaxy devices, plus what to do when the standard method doesn’t work.

What You’ll Need

  • Your Android phone or tablet
  • Access to the Settings app
  • Wi-Fi or mobile data connection (for re-testing)
  • Optional: A third-party DNS changer app (for Android 8 and earlier)

Step-by-Step

Method 1: Toggle Airplane Mode (Quickest)

  1. Swipe down from the top of the screen to open the Quick Settings panel.
  2. Tap the Airplane mode icon to turn it on. Wait 10–15 seconds.
  3. Tap the icon again to turn it off. This forces your device to re-establish network connections and often clears the DNS cache.
  4. Reopen the browser or app that was having issues.

Method 2: Restart Your Device

  1. Press and hold the Power button until the power menu appears.
  2. Tap Restart (or Reboot). If you don’t see that option, tap Power off, wait for the screen to go black, then press the Power button again to turn it back on.
  3. After the device fully boots up, test the connection.

Method 3: Toggle Wi-Fi Off and On

  1. Open Settings and tap Wi-Fi (or Connections > Wi-Fi on Samsung).
  2. Toggle the Wi-Fi switch to Off.
  3. Wait about 10 seconds, then toggle it back On.
  4. Reconnect to your network if prompted, then test the site again.

Method 4: Forget and Rejoin the Wi-Fi Network

  1. Go to Settings > Wi-Fi.
  2. Tap and hold the network you’re connected to (or tap the gear icon next to it).
  3. Select Forget (or Forget network).
  4. Tap the network again, enter the password, and reconnect.
  5. This clears the network-specific DNS cache and renews your IP lease.

Method 5: Change Your DNS Server (Android 9+ and Samsung)

  1. Open Settings > Wi-Fi (or Connections > Wi-Fi).
  2. Tap the gear icon next to your connected network.
  3. Tap IP settings and change it from DHCP to Static.
  4. Scroll down to DNS 1 and DNS 2 fields. Enter a public DNS like 8.8.8.8 and 8.8.4.4 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare).
  5. Tap Save or Connect. This bypasses your ISP’s DNS and forces a fresh lookup.

Method 6: Use a Third-Party DNS Changer (For Older Android)

  1. Install a reputable DNS changer app from the Play Store (e.g., “DNS Changer” or “Private DNS”).
  2. Open the app and grant the requested permissions.
  3. Select a DNS provider or enter a custom DNS server.
  4. Tap Start or Apply. The app will create a local VPN that routes DNS queries through the new server, effectively clearing the old cache.
  5. To revert, open the app and tap Stop.

Common Mistakes

  • Forgetting to test after each step: Always check if the problem is resolved before moving to the next method.
  • Not clearing the browser cache: Sometimes the browser itself caches DNS results. Clear your browser’s cache and cookies as well.
  • Using the wrong DNS values: When entering static DNS, make sure you use valid IP addresses. A typo will break your connection.
  • Assuming airplane mode always works: On some devices, airplane mode doesn’t fully reset the network stack. If it doesn’t work, try a reboot.
  • Changing DNS on the wrong network: If you’re on mobile data, the Wi-Fi settings won’t apply. Use the Private DNS option in Settings > Network & Internet for mobile data.

Tips

  • Use Private DNS (Android 9+): Go to Settings > Network & Internet > Private DNS and select Automatic or enter dns.google or one.one.one.one. This applies DNS to both Wi-Fi and mobile data.
  • Clear browser data: In Chrome, go to Settings > Privacy > Clear browsing data, and check “Cached images and files.” This helps if the issue is browser-specific.
  • Check for system updates: Occasionally, a bug in the network stack is fixed by a system update.
  • Use a reliable DNS provider: Google (8.8.8.8) and Cloudflare (1.1.1.1) are fast and have high uptime.

Troubleshooting

If none of the above steps work, try these:

  • Check if the problem is on your end: Try loading the same website on another device connected to the same network. If it works there, the issue is specific to your Android device.
  • Try a different browser: If Chrome fails but Firefox works, the problem is browser-related, not system-wide.
  • Reset network settings: Go to Settings > System > Reset options > Reset Wi-Fi, mobile & Bluetooth. This will forget all saved Wi-Fi networks and Bluetooth devices, so use it as a last resort.
  • Check if the website itself is down: Use a site like downforeveryoneorjustme.com to see if the site is reachable from elsewhere.
  • Contact your ISP: If you’ve tried everything and still get DNS errors, your ISP’s DNS servers may be having issues. Switching to a public DNS (as in Method 5) usually solves this.

Frequently Asked Questions

Does Android have a command to flush DNS like Windows?

No, Android doesn’t expose a built-in ipconfig /flushdns equivalent. The methods above (airplane mode, restart, network toggle) are the standard ways to clear the DNS cache on Android.

Will clearing DNS cache delete my browsing history?

No. Clearing the DNS cache only removes stored IP address lookups. Your browsing history, cookies, and saved passwords remain untouched.

How often should I clear the DNS cache?

Only when you experience connection issues, such as websites not loading or showing outdated content. There’s no need to clear it regularly; the system manages it automatically.

Why does my Android device keep showing DNS errors?

This usually means your DNS server is unreachable or slow. Try switching to a public DNS (like 8.8.8.8) or restarting your router. If it persists, your ISP may be having an outage.

Does changing DNS improve internet speed?

It can, if your ISP’s DNS is slow or overloaded. A faster DNS server can reduce the time it takes to resolve domain names, making browsing feel snappier, but it won’t increase your raw download speed.

Is it safe to use third-party DNS changer apps?

Generally yes, but only download from reputable developers and check permissions. Some apps may display ads or collect data. The built-in Private DNS feature on Android 9+ is safer and recommended.

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

The whole Tech How-To bed →