Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

#Alfred 2 Flush DNS Workflow

Flush the DNS cache in OS X (10.9+).


For an easy installation, you can download the exported workflow here: flushdns.alfredworkflow


###Keyword: fdns

No arguments will prompt you for a user and password.

For more convenience, you can also enter your password after the keyword (separated by a space). This is much quicker, and don't worry: this workflow does not store or submit any data. If the password happens to be wrong, you will see the regular prompt by the system.

Success or errors are reported through a notification.

Command used:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

If mDNSResponder is not available (currently only the case for OS X 10.10 - 10.10.3, see this link), the following command for Discoveryd is used:

sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches



  • Bugfix for OS X 10.10.4+


  • Updated for compatibility with OS X 10.10 Yosemite
  • Improved error handling
  • Minimum requirement upped to OS X 10.9 Mavericks (though it might still work on OS X 10.7 / 10.8)


  • Initial release