MENU

macOS清理DNS缓存

February 17, 2020 • 技术笔记

Windows上ipconfig /flushdns这么简单的命令为啥在macOS中这么复杂...

Mac OS X 清除DNS缓存

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

Mac OS X 12 (Sierra) and later:

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

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

sudo killall -HUP mDNSResponder

Mac OS X 10.10 (Yosemite), Versions 10.10.4+:

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

参考:
Flushing your DNS cache in Mac OS X and Linux

Archives QR Code
QR Code for this page
Tipping QR Code