Call us Toll-Free:
1-800-218-1525
Email us

 Sponsors

How to Flush DNS

Mike Peters, 12-06-2009
At times you want to force your machine to "forget" (flush) all DNS entries, so that it reloads any recent changes.

This is useful when you've recently updated the ip-address of a domain and want your machine to see the new changes, without relying on any previously stored cache.

Here's how to flush your DNS cache:

Windows

Open a CMD dos box and run:

ipconfig /flushdns

If you get an error about "this requires elevation", do this: Click on the Windows Start button, type "cmd", then right click on the program and select "Run as Administrator"

Mac

In Mac OSX Leopard, you can use the command
dscacheutil to flush the DNS resolver cache:

dscacheutil -flushcache

In Mac OSX versions 10.5.1 and before, the command lookupd -flushcache performed the same task:

lookupd -flushcache

Linux

In Linux, the nscd daemon manages the DNS cache.
To flush the DNS cache, restart the nscd daemon.
To restart the nscd daemon, use the command:

/etc/init.d/nscd restart
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions