Mac

[Mac] Mac 刷新 DNS 缓存

Reset the DNS cache in OS X...

Posted by Mr.Vincent on 2020-11-07
Estimated Reading Time 1 Minutes
Words 63 In Total
Viewed Times

根据 Mac OS X 操作系统的版本选择以下命令:

Mac OS X 12 (Sierra) and later

1
2
3
sudo killall -HUP mDNSResponder
sudo killall mDNSResponderHelper
sudo dscacheutil -flushcache

Mac OS X 11 (El Capitan) and OS X 12 (Sierra)

1
sudo killall -HUP mDNSResponder

Mac OS X 10.10 (Yosemite), Versions 10.10.4+

1
2
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !