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

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...

The Right Way to Clean Your Keyboard, Tablet and Smartphone

W e recently came across the list of the top most dirty objects in an average household, and surprisingly, it’s not the toilet seat. Some of the items that were ranked at the top of that list have definitely made us think twice before making a call or looking up updates on Facebook. The keyboard on which you typed to get to this page, or the touchscreen that you swipe on are some of the most bacteria-rich items in your household, so keeping these squeaky clean should be a top priority. While there are lots of methods and products for cleaning these items, most of us ignore this. How similar do you find this scenario: Your smartphone’s screen is really dirty, so you rub it on your shirt, or a piece of cloth that’s close by, or you remember that it’s been some time since you’ve cleaned your keyboard, so you turn it upside down and give it a few slaps. Most of us use this (or a very similar) technique and think “Now it’s clean!”, but the truth of the matter is that it’s j...

Best Tools to Customize Your Smartphone Beyond Cases and Covers

E xpressing one’s personality through the mobile device they’re using is becoming more of a trend these days. Getting the newest model, choosing the color that matches our way of being, buying a case to go with that and many other ways or customizing the exterior of a smartphone are pretty common among cellphone users. But simply changing the way it looks on the outside is often not enough, so why not customize it inside-out ? You probably know that you can change the ringtone, download or transfer a song you like to set it as a ringtone, change the wallpaper, make the phone ring in a different way for each person calling you and so on and so forth. Apart from doing this manually, there are also quite a few apps out there that can make it even easier for you to turn your smartphone into your baby. Background Pictures When it comes to the wallpaper that shows up the first time you unlock your phone, there are many ways to personalize it. You can simply browse throu...