Skip to main content

[How to] Flush DNS in Windows, Mac & Linux

Before I tell how to Flush DNS, you need to understand the need to Flush DNS. Many a times you must have encountered “time out” errors while browsing some websites. If you try accessing these websites through a proxy or VPN, they would work. When a computer browser visits a website for the first time, it stores the website’s DNS information in cache. The next time the computer visits the same website, it looks in the cache to see if the website’s information is present to use. In case the website’s DNS information has changed or if the cache is corrupted, then it can cause problems.
Flushing the cache removes all the information stored in cache, thereby forcing the computer to find the new DNS information for the website.

Flush DNS in Windows

In order to flush DNS in Windows (Win XP, Win ME, Win 2000, Win Vista and Win 7), follow these simple steps
  • Start -> Run -> type cmd
  • in command prompt, type ipconfig /flushdns
flush-dns-windows
  • Voila! Your Window DNS cache has just been flushed. It will delete any incorrect entries too. You can also use the command ipconfig /displaydns to view the DNS resolver cache.

Flush DNS in Mac

In Mac OS X Leopard, you can use the command dscacheutil -flushcache to flush the DNS resolver cache
  • type lookupd -flushcache in your terminal to flush the DNS resolver cache.
flush-dns-mac-leopard
  • Done! DNS resolver cache is now flushed!
In Mac OS X, you can use the command dscacheutil -flushcache to flush DNS resolver cache.
  • type dscacheutil -flushcache in your terminal to flush the DNS resolver cache.
flush-dns-mac-osx
  • Done! DNS resolver cache is now flushed!

Flush DNS in Linux

In Linux, the nscd daemon (Name Service Cache Daemon) manages the DNS cache
  • Open up a command terminal (either as root or run step 2 with sudo)
  • Run the command /etc/init.d/nscd restart
flush-dns-linux
I hope you have found this tutorial useful. If you have any suggestion, do let me know with your comments below.

Comments

Popular posts from this blog

Mega List of Windows 7 Drivers

W indows 7 has just been released all over the world and I am sure many of you are gearing up to upgrade the OS of your PC to Windows 7. One thing which comes to my mind immediately when I think of upgrading my OS, is about the compatible drivers.

Dash up Your WordPress Dashboard Interface

Do you have a multi-author blog ? Do you want to brand your WordPress dashboard with custom logo and unique interface? Then this post is for you only. In this article I am going to tell you how you can change the avatar of WordPress admin page with new style and add some cool features to it. Let’s start. Fluency WordPress Plugin Here is a WordPress plugin for you called Fluency with which you can customize your WordPress admin page according to your needs without any knowledge of PHP. Some top features of Fluency that I personally like are – Display your own custom logo at the top of the WP Menu once logged in : This is my favorite option, with this plugin you can also add your own logo on top of WordPress admin page. A good option if you’ve a multi author blog. Hot keys for menu/submenu access : Fluency provides you with features of hot keys with which you can easily open menu and submenu. Now, no need to take mouse to every menu, simply use the hot keys f...

All Seeing Eye Chrome Add-on Runs Text Searches of Your Entire Browser History

W e use our browsers daily and at a certain point, we might want to find that interesting website that we accessed a few months ago. But by using the default browser history is either too difficult or almost impossible to do that. That’s why this Chrome extension is so awesome. The All Seeing Eye add-on indexes all text in your Web history, letting you run text searches. All Seeing Eye indexes all of the text of every page you visit in Chrome and even captures a screenshot of each page you visit for a quick visual search of your Web history. The default Web history tells you only the URL and title of each Web page you have visited but with the Chrome extension All Seeing Eye, your Web history expands to include all of the text of every page you have visited along with screenshots. The moment after you install the All Seeing Eye from the Chrome Web Store, the extension starts indexing all of the text of every page you visit and capturs scre...