Skip to content

Manually Clear the DNS Cache of a Computer & Phone

Are you clearing the DNS (Domain Name Server) Cache on any of your devices? Here's a guide on how to clear DNS cache across different devices.

The internet needs the DNS to resolve the domain name into the server IP address, which shall load the correct website in our web browser.

If the IP address of the domain is changed, DNS will not be able to connect the IP address, resulting in errors. Hence, clearing the cached DNS files will help fetch the new addresses.

Clear or Flush the DNS Cache on your devices

In this guide, we have shared the steps to clear the stored network DNS cache in various operating systems.

info icon
Note: Web browsers have their own DNS host and cache, independent of system DNS. If you have a network-related problem with the browser, say, Chrome, you should flush Chrome’s DNS cache.

Clearing the Network DNS Cache of Windows PC

The command prompt is one of the easiest ways to clear the DNS cache from Windows. You only need to execute two simple code words to flush the stored DNS cache. Here are the steps for your Windows PC:

  1. Click on the Start menu from the taskbar and search for Command Prompt in the search bar.
  2. Select the Run as administrator option.
    Command Prompt app Run as Administrator from Start menu on WindowsIt will launch the command prompt window with administrator permissions.
  3. Type the command ipconfig /flushdns and press Enter key.
    ipconfig flushdns command on Windows Command Prompt
  4. You should see a message: Windows IP Configuration Successfully flushed the DNS Resolver Cache.

That’s it. The DNS cache of the Windows PC has been cleared. If you revisit a domain name, the fresh IP address will be fetched and assigned to the domain name.

Flushing the DNS Cache of the Mac

Like the Windows PC, you can use the Terminal app on macOS to clear the cache stored in the network settings. Here are the steps to clear the DNS cache on macOS:

  1. Invoke Spotlight Search using Cmd+Spacebar keys on your macOS.
  2. Search and open the Terminal app.
    Spotlight Search to open Terminal App
  3. Type the following command and press Enter key:
    sudo killall -HUP mDNSResponder && sudo dscacheutil -flushcache

    Clear DNS Cache from macOS using Terminal app command

It might prompt you to enter your user password to execute the sudo user command. That’s it; DNS records are flushed and cleared from the macOS system.

Deleting the Network DNS Cache of Android Devices

Flushing the DNS cache on Android smartphones is tricky. It doesn’t have a dedicated DNS cache-clearing option. However, if required, it does have a DNS Settings page, which helps configure the DNS addresses (like Google DNS, CloudFlare DNS, etc.).

The only way to clear the DNS cache is by using the Reset Network Settings option from the Internet settings page. Here are the steps to follow:

  1. Open the Settings app on your Android Phone.
  2. Select Network & Internet settings and open the Internet menu.
    Internet menu under Network and Internet settings on Android Phone
  3. Tap the Reset Internet Settings command button from the top-right corner.
    Reset Network and Internet Settings on Android Phone

It will immediately reset the connected network settings and clear the DNS cache stored in the Android phone. You will have to reconnect with your Wi-Fi network after resetting.

info icon
Note: Reset Network Settings in Android phones will not clear the saved Wi-Fi password.

To yield better results, you can also consider combining Airplane Mode and Reset Network Settings for a complete DNS cache wipeout.

Removing the DNS Cache of iPhone or iPad

Like the Android phone, even the iPhone or iPad does not have the DNS cache clearing option. We have to rely on the network connection option to reset. One of the easiest ways is using the Airplane mode, which will disconnect and reconnect the network connection while performing the DNS flush.

Follow these steps to clear the DNS cache using the Airplane mode on your iPhone or iPad:

  1. Slide down to open the Control Center on your device.
  2. Tap on the Airplane mode button to Turn it On.
    Airplane Mode button under Control Center on iPhone
  3. Wait for a few seconds and then Turn Off the Airplane mode.

It will disable and enable the active network connection and clear the stored DNS cache.

Alternatively, there is an advanced but more complex way to clear the DNS cache using the Reset Network settings option under the Settings app > General > Transfer or Reset iPhone > Reset.

Reset Network Settings option in iPhone Settings menu

It will flush the DNS cache along with all your settings on your iPhone or iPad device.

Bottom Line

DNS is the backbone of networks and connections for the internet. It helps identify and resolve the domain name with a correct IP address to load the site in split seconds.

The cached DNS settings improve the speed but occasionally result in errors due to outdated records. Clearing or flushing the DNS cache can help update outdated records and resolve network-related issues.

While most systems do have an automated way to clear the DNS cache, it works in a fixed time interval like an hour, a week, etc., which the webmaster sets within the domain registrar console. Hence, manually clearing the DNS cache will help to fix the immediate site loading problems.

Lastly, if you've any thoughts or feedback, then feel free to drop in below comment box. You can also report the outdated information.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases; of course at no extra cost to you (indeed, you may get special discounts).
Kushal Azza

Kushal Azza

Kushal Azza is a Google Certified IT Professional, Digital Content Creator, and Go-To Digital Marketer with Engineering Degree. He has over a decade of experience solving tech problems, troubleshooting, and innovating digital solutions. Follow him on Twitter and LinkedIn.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.

Your email address will not be published, and we will never spam your inbox. Required fields are marked *