清除macOS的DNS缓存在Sierra版本中需要执行如下命令:

1
sudo killall -HUP mDNSResponder;say DNS cache has been flushed

此时,macOS的DNS缓存已经被清理。