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.

10
SHARES

 
Founder-Editor

Raju is the founder-editor of Technology Personalized. A proud geek and an Internet freak, who is also a social networking enthusiast. You can follow him on Facebook and on Twitter. Mail Raju PP. Follow rajupp

 
 
  • Gojeg

    Simple tips, sometimes we must the DNS cache, especially when we want to test a new domain setting. I mean, when we change the DNS records. :D

  • Nik

    My Command prompt shows “the requested operation requires elevation”

  • Ruchir9897

    @Nik-You are using Vista or 7 and you must right click the command prompt and Run as administrator,otherwise all major command lines commands will never be executed.

  • Nik

    Thanks Ruchir It Worked!