Skip to content

Instantly share code, notes, and snippets.

@khalidx
Last active March 26, 2018 00:29
Show Gist options
  • Save khalidx/b0b445f7e83c35cf1cfe5f7dab4eda1e to your computer and use it in GitHub Desktop.
Save khalidx/b0b445f7e83c35cf1cfe5f7dab4eda1e to your computer and use it in GitHub Desktop.
Flushing the DNS cache in Mac OS X

Run the following command in the terminal.

sudo killall -HUP mDNSResponder; sudo killall mDNSResponderHelper; sudo dscacheutil -flushcache

Make sure to also flush any other host name caches, like Chrome's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment