LatestTechnology

How to Flush DNS Cache On Different Devices Like Windows, Mac, Linux

This tutorial will discuss how to flush DNS  on various platforms Like Windows, Mac, Linux etc.

At the end of this guide on how to flush DNS, we hope you can find out:

  • How to Flush DNS on Windows.
    1. Activate the Windows command prompt console.
    2. DNS flush.
  • How to Flush DNS on Linux, depends on the OS used.
    1. Ubuntu Linux.
    2. Other Linux distributions.
  • How to Flush DNS on Mac, depending on the OS version used.
    1. Mac OS Sierra.
    2. Mac OS X El Capitan.
    3. Mac OS X Yosemite.
    4. Mac OS X Mavericks.
    5. Mac OS X Mountain Lion.
    6. Mac OS X Lion.
    7. Mac OS X Snow Leopard.
    8. Mac OS X Leopard and below.

DNS resolver cache that is never updated will only display incorrect information or errors when you want to access the website. This is due to changes in the DNS. Therefore, it is very important for you to know how to flush the DNS cache and resolve the issue easily.

How to Flush DNS Windows

First of all, we will discuss how to flush Windows DNS. The following methods you can use to clear the DNS cache in Windows XP; Vista; 7; 8; 8.1; 10

Step 1 – Activate the Windows command prompt console

Press the Windows + R  key to open the Run dialogue box. Type the following command and click the OK button  :

cmd

cmd

A command prompt window will open.

command prompt window will open

Step 2 – Flush DNS

Use this command to clear the DNS resolver cache on your computer:

ipconfig / flushdns

Wait a minute and you will see a confirmation stating that the DNS resolver cache has been flushed.

How to Flush DNS on Linux

Clearing the DNS cache on Linux is not a difficult process. The syntax for DNS flush depends on what Operating System you are using.

  • Ubuntu Linux

Open a terminal and run the following command:

sudo service network-manager restarts

ubuntu dns flush

  • Other Linux Distributions

If you want to do other Linux distribution, then this command can be used:

sudo /etc/init.d/nscd restart

ubuntu

How to Flush DNS on Mac

The command to clear the DNS cache is different depending on the version of the Operating System you are using.

  • Mac OS Sierra

To flush DNS on the Apple OS version, open  Application> Utilities> Terminal and enter this command:

sudo killall -HUP mDNSResponder

mc os sierra

  • Mac OS X El Capitan

If you use this OS, the process required is the same. Open  Application> Utilities> Terminal  and enter:

sudo killall -HUP mDNSResponder

mac os ei capitan

  • Mac OS X Yosemite

Clean the DNS cache on this OS by opening  Application> Utilities> Terminal  and entering:

sudo discoveryutil udnsflushcaches

mac os y yosemite

  • Mac OS X Mavericks

To clear the outdated DNS cache, open  Application> Utilities> Terminal  and run:

sudo killall -HUP mDNSResponder

Mac OS X Mavericks

  • Mac OS X Mountain Lion

Users of this version of MAC OS can open Application> Utilities> Terminal  and flush DNS with this command:

sudo killall -HUP mDNSResponder

Mac OS X Mountain Lion

  • Mac OS X Lion

Open  Application> Utilities> Terminal  using the following syntax:

sudo killall -HUP mDNSResponder

  • Mac OS X Snow Leopard

If you are using this version, open  Application> Utilities> Terminal  and enter:

Mac OS X Snow Leopard

sudo dscacheutil -flushcache

  • Mac OS X Leopard and below

Clean the DNS resolver cache on this OS by going to  Application> Utilities> Terminal  and entering:

sudo lookupd -flushcache

command prompt window will open - How to Flush DNS Cache On Different Devices Like Windows, Mac, Linux

Conclusion

Now you already know how to flush DNS on Windows, Linux, and Mac platforms. Clean the DNS resolver cache by using the DNS flush command and make sure you have the latest entries. Keep in mind, the browser cache might also cause web pages to not display properly,

Leave a Reply

Your email address will not be published. Required fields are marked *