Wednesday, April 4, 2007

ipconfig /flushdns on a Mac

In a windows environment, if you open a command prompt you can flush the dns cache by typing the following command:

C:> ipconfig /flushdns

So, what is the equivlent on a Mac OS X system? Here you go:

$ lookupd -flushcache

Gotta love having a shell on a Mac. = )

Josh Phillips
ProVisionIT
www.provisionit.com

1 comment:

Josh Phillips said...

lookupd was deprecated, so the new command is as follows:

$ dscacheutil -flushcache