Flushing OS X DNS cache

Posted by Colin A. Bartlett Mon, 10 Dec 2007 16:39:00 GMT

I don’t know why it took me so long to learn this but this command is very handy:
dscacheutil -flushcache

update: I originally posted that the command was dnscacheutil. It’s actually just dscacheutil. I’ve fixed it above. I also learned this is a Leopard-only tool.

It’s equivelant to the following Windows, which was always very handy when changing DNS configuration around:

ipconfig /flushdns
Comments

Leave a response

Comments