Sunday, 4 November 2012

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
    ipconfig /flushdns
  3. 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

Posted by R2blog. R2blog auto post for blogspot. Download at http://R2blogger.blogspot.com


0 comments:

Post a Comment

 

My Geek Tricks Copyright © 2011 | Template design by O Pregador | Powered by Blogger Templates