If you’d like to automatize DNS flushing in OS X, open applescript editor and type:
tell application "Terminal"
activate
do script "sudo lookupd -flushcache"
end tell
Save everything as application bundle and you are ready to use it. If you are 10.5+ user, use dscacheutil -flushcache instead of lookupd -flushcache.



