We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

therobot on 10/15/08


Tagged

mac DNS os x networking


Versions (?)


Flush dns cache os x


Published in: Bash 


  1. #Tiger:
  2. lookupd -flushcache
  3. #Leopard:
  4. dscacheutil -flushcache

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: rastersize on October 15, 2008

This is only for version before Leopard (>10.5). In Leopard (

Posted By: rastersize on October 15, 2008

Well looks like Markdown destroyed my post. The last part should be:
In Leopard you use this command: dscacheutil -flushcache

You need to login to post a comment.