Flush DNS Cache (2020 How-To Tutorial)

Written by Emma Davis

German Japanese

Flush DNS to resolve Internet connection-related troubles

Flush DNS stands for a command which assists in clearing out-of-date or damaged DNS resolver cache. Considering the fact that your workstation automatically caches IPs and other DNS results to perform further queries to the same hostname in a quicker way, it could also cache certain old or bad results. As a result, you might have problems in communicating with hosts in a proper manner. In reality, it is one of the best solutions to resolve INET_E_RESOURCE_NOT_FOUND issue. DNS Flush is also often applied altogether with the IP release renew commands.

“…I’m having an issue with a single website which is not displaying correctly in Chrome. I have cleared my cache, checked specific settings for that website, and also relaunched. It’s not displaying in Firefox or Safari either. What else can I try?”, — writes Twitter user @karlecco.

Irrespective of your preferred operating system (Windows, Linux, Mac, Ubuntu) or browser, you can manually boost up the procedure and clear DNS Cache by means of simple recommendations set forth below. For simpler navigation, refer to the Table of Contents to proceed to the instructions for your particular operating system.

The following guidelines demonstrate how to flush DNS on the below-said operating systems:

  • Windows 10, 8.1, 8, 7, Vista, 2000, NT, XP, 98;
  • MacOS versions from 10.6 (Snow Leopard) to 10.15 (Catalina);
  • Linux;
  • Ubuntu;
  • Chrome.

Tips to Flush DNS Cache on Microsoft Windows

Windows 10

Flush DNS on Windows 10 is an easy command that must be entered in Windows Command Processor, also known as Command Prompt (CMD). You need to, however, open CMD with the Administrator’s right. This is what you ought to do.

  1. In Windows 10, apply Windows search and specify Command Prompt.
  2. Right-click Command Prompt and select Run as Administrator.
  3. In User Account Control pop-up, confirm by clicking on Yes.
  4. In CMD, specify ipconfig /flushdns and hit Enter.Flush DNS Cache - ipconfig /flushdns

Windows 8 / Windows 8.1

For flushing DNS on Windows 8 or 8.1, be sure to apply the Command Prompt with Admin’s rights. Perform these guidelines for clearing your DNS cache.

  1. In Windows 8/8.1, apply Windows search and specify Command Prompt.
  2. Right-click Command Prompt and select Run as Administrator.
  3. In User Account Control alert, click Yes.
  4. In CMD, specify ipconfig /flushdns and hit Enter.

Windows Vista / Windows 7

For flushing the DNS cache on Windows 7, you must open Command Prompt with the Administrator’s right. Below please find tips explaining how to do it.

  1. Click on Start > All Programs > Accessories and locate Command Prompt.
  2. Right-click Command Prompt and select Run as Administrator.
  3. In CMD, specify ipconfig /flushdns and hit Enter.

Windows XP / 2000 / NT / 98

In case you’re searching for how to clear DNS cache on previous Windows versions, there’s a much simpler solution. All you have to do is:

  1. Go to Start > Run > cmd.exe > OK.
  2. Specify ipconfig /flushdns and hit Enter.

Flushing DNS Cache on Mac OS

For clearing the DNS Cache on Mac OS X systems, follow the milestones set forth below. Please pay attention to the commands displayed for various Mac OS versions – not all of them are identical for every OS.

MacOS 10.15: Catalina

For flushing DNS on MacOS Catalina, do the following.

  1. Go to Terminal (Application  Utilities › Terminal or proceed Go > Utilities > Terminal)
  2. Specify sudo killall -HUP mDNSResponder and hit Enter for running the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal. Flush DNS Cache - MacOS 10.15: Catalina

MacOS 10.14: Mojave

Flushing DNS on MacOS Mojave is a fast and simple process if you implement the below-given steps.

  1. Start Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Specify sudo killall -HUP mDNSResponder and hit Enter to start the command.
  3. Indicate your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal.

MacOS 10.13: High Sierra

Clearing the DNS on MacOS High Sierra can be performed by implementing these instructions.

  1. Start Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Specify sudo killall -HUP mDNSResponder and hit Enter to execute the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal. Flush DNS Cache - sudo killall -HUP mDNSResponder

MacOS 10.12: Sierra

If you would like to clear DNS on MacOS Sierra, refer to these guidelines.

  1. Start Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Specify sudo killall -HUP mDNSResponder and hit Enter to execute the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal.

Mac OS X 10.11: El Capitan

For clearing the DNS on MacOS X El Capitan, implement the below-said steps.

  1. Start Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Specify sudo killall -HUP mDNSResponder and hit Enter to execute the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal.

Mac OS X 10.10: Yosemite

For flushing DNS on MacOS X Yosemite, perform these steps.

  1. Start Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Specify sudo discoveryutil udnsflushcaches and hit Enter to execute the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal. sudo discoveryutil udnsflushcaches

Mac OS X 10.9: Mavericks

For flushing DNS on MacOS X Mavericks, perform these steps.

  1. Start Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Indicate sudo killall -HUP mDNSResponder and hit Enter to execute the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal.

Mac OS X 10.8: Mountain Lion

For clearing DNS cache on MacOS X Mountain Lion, perform the below-said guidelines.

  1. Go to Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Specify sudo killall -HUP mDNSResponder and hit Enter to execute the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal.

Mac OS X 10.7: Lion

For flushing DNS on MacOS X Lion, perform these steps.

  1. Go to Terminal (Application  Utilities › Terminal or proceed to Go > Utilities > Terminal).
  2. Specify sudo killall -HUP mDNSResponder and hit Enter to execute the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal.

Mac OS X 10.6: Snow Leopard and older versions

For flushing DNS on MacOS X Snow Leopard and older versions, undertake these steps.

  1. Start Terminal (Application  Utilities › Terminal or proceed Go > Utilities > Terminal).
  2. Specify sudo lookupd -flushcache and hit Enter to start the command.
  3. Provide your password (it might not come up on the screen while you type).
  4. Hit Enter. Shut down the Terminal.

Clearing DNS Cache on Linux or Ubuntu

Linux

  1. Start Terminal by means of the Ctrl + Alt + T hotkey.
  2. Linux suggests several commands for DNS flushing, for instance:
  3. For clearing nscd DNS cache: sudo /etc/init.d/nscd restart;
  4. For clearing dnsmasq DNS cache: sudo /etc/init.d/dnsmasq restart;
  5. For clearing BIND DNS cache, apply one of the below-said commands:
    1. sudo /etc/init.d/named restart;
    2. sudo rndc restart;
    3. sudo rndc exec. DNS Cache on Linux

Ubuntu

  1. Start Terminal by means of the Ctrl + Alt + T hotkey command.
  2. Specify the following command: sudo /etc/init.d/dns-clean restart and hit Enter.DNS Cache on Ubuntu
  3. Then, specify sudo /etc/init.d/networking force-reload and hit Enter. sudo /etc/init.d/networking force-reload

How to Flush DNS on Google Chrome

Google Chrome browser contains a built-in caching system. For clearing DNS cache on Chrome, perform these steps.

  1. Start the Chrome browser. Copy and paste the below-said line into the Chrome address bar, then hit Enter.chrome://net-internals/#dns
  2. Choose to Clear host cache.
  3. Then click on Sockets.
  4. Click Flush socket pools. Flush DNS on Google Chrome

In case you would like to clear DNS cache on other browsers, for instance, on Firefox or Safari, we believe that resetting them is a proper solution.

Done! We hope that our tutorial on flushing DNS on Windows, Mac, Linux, Ubuntu, or Chrome was beneficial to help you resolve the issue.

Sending
User Review
0 (0 votes)
Comments Rating 0 (0 reviews)

German Japanese

About the author

Emma Davis

I'm writer and content manager (a short time ago completed a bachelor degree in Marketing from the Gustavus Adolphus College). For now, I have a deep drive to study cyber security.

Leave a Reply

Sending

This site uses Akismet to reduce spam. Learn how your comment data is processed.