Monday, May 25, 2009

How to Flush DNS Cache

1) For Windows

To flush or remove DNS cache:
C:>ipconfig /flushdns

To see the DNS cache:
C:>ipconfig /displaydns

Do this if you want to see the syntax;
C:>ipconfig /?

2) For Linux

- To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
- Once you run the command your linux DNS cache will flush.

3) For Mac OS X

- type lookupd -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ lookupd -flushcache
- Once you run the command your DNS cache (in Mac OS X) will flush.

Thanks
Nobs

No comments:

Post a Comment