" " Tools And Tutorials: How to Clear/Flush DNS cache in Linux/Windows/Mac Os?

Welcome to my blog!

Meet the Author

My name is Saqib Hussain and i am expert in Networking, Reverse Engineering, Web Development And Software.

Looking for something?

Subscribe to this blog!

Receive the latest posts by email. Just enter your email below if you want to subscribe!

How to Clear/Flush DNS cache in Linux/Windows/Mac Os?

How to Clear/Flush DNS cache in Linux/Windows/Mac Os?

If a website newly registered in internet world, it may not be loaded in your computer.  For example, you register for example.com yesterday, still you may not see your web page. This is problem of DNS cache.  Your local DNS cache is old one so it won't know the newely available domain names.  Sometime you may update the NS records of your domain to point to new hosting service.

In these case you have to clear or flush cache in your computer.

How to Flush cache in Windows?




  1. Open Command Prompt(Start->Run , type cmd and hit enter).
  2. In command promt type
  3. ipconfig /flushdns

  4. hit enter

Your DNS cache is cleared now, try to load your new website

How to Clear Cache in Linux?

First of all you have to install nscd . (only 250kb).
Open terminal and type:
sudo apt-get install nscd 

Type this command to restart the DNS cache server in Linux:
sudo /etc/rc.d/init.d/nscd restart

How to Clear Cache in Mac Os?

Open the Terminal
Type the following command:
dscacheutil -flushcache




No comments :

Post a Comment