Aug
07

ipconfig /flushdns for Mac

By Q

When troubleshooting DNS problems, I often use a combination of nslookup and ipconfig commands on a Windows system. And while the Mac has the nslookup command, I didn’t have an equivalent of ipconfig /flushdns until today.

lookupd -flushcache

And yes, I do enjoy being able to work on the Mac in a command-line environment.

Update:
lookupd is deprecated in Mac OSD 10.5. The new command is:

dscacheutil -flushcache

Categories : How To, Mac

2 Comments

1

I can’t tell you how many hairs were spared from being pulled out of my head when I found this tip – thanks!

2

I realize you posted this years ago, but this really helped me out today. Thank you.

Leave a Comment

*