Here’s a list of useful Terminal commands

 

Flush the DNS cache on macOS 10.10.4 and up

sudo killall -HUP mDNSResponder