Technology

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

A 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

  • Other Linux Distributions

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

sudo /etc/init.d/nscd restart

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

  • 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 X Yosemite

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

sudo discoveryutil udnsflushcaches

  • Mac OS X Mavericks

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

sudo killall -HUP mDNSResponder

  • 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 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:

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

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,

Abhishek Dixit

Recent Posts

Fashion Trends 2026: 7 Trends Set to Dominate India’s Festive Season

Fashion in 2026 is moving away from overly minimal looks and embracing colour, texture, craftsmanship…

6 days ago

Asian Games 2026: India’s Medal Hopes, Key Sports and Athletes to Watch

The countdown to the Asian Games 2026 has entered its final stage, and Indian sports…

6 days ago

Upcoming Cars in India 2026–2027: New Cars, Expected Prices and Launch Dates

The Indian automobile market is set for an exciting period in 2026 and 2027, with…

6 days ago

A Complete Pregnancy Health Guide for Expecting Mothers

Pregnancy is one of the most life-changing journeys in a woman’s life. Along with excitement…

7 months ago

What is SEO in Digital Marketing? – Productive Study Tips

Search Engine Optimization (SEO) is a critical aspect of digital marketing, aiming to improve a…

2 years ago

Life as a Student at Tver State Medical University – Campus, Culture and Activities

To shape one’s future career, choosing the right medical university is a crucial decision. Tver…

2 years ago