How to flush DNS Cache

edited June 2015 in Server Management

 Sometimes flushing the browser cache is not enough and you may need to flush or reset your dns cache. This simple command fixes most minors issues.

Microsoft Windows

  • Start -> Run -> type cmd
  • in command prompt, type:

ipconfig /flushdns

Mac osX

  • Click on the magnified glass at the top right of the screen
  • Do a search for “terminal”
  • Type the following command in the terminal window and press “enter”

dscacheutil -flushcache

Mac osX (leopard)

  • Click on the magnified glass at the top right of the screen
  • Do a search for “terminal”
  • Type the following command in the terminal window and press “enter”

lookupd -flushcache

Linux

  • To restart the nscd daemon, type the following in your terminal:

/etc/rc.d/init.d/nscd

Sign In or Register to comment.