苹果Mac系统(EI captian版本)下如何清除DNS缓存?

桌面应用程序界面——其他——终端

输入是命令组合:(全部复制,粘贴)

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say DNS cache flushed;

当听到语音说:dns cache flushed,说明成功刷新了。

其他系统方法:

OS X Yosemite and later

Use the following Terminal command to reset the DNS cache in OS X v10.10.4 or later:

sudo killall -HUP mDNSResponder

Use the following Terminal command to reset the DNS cache in OS X v10.10 through v10.10.3:

sudo discoveryutil mdnsflushcache

OS X Mavericks, Mountain Lion, and Lion

Use the following Terminal command to reset the DNS cache in OS X v10.9.5 and earlier:

sudo killall -HUP mDNSResponder

Mac OS X Snow Leopard

Use the following Terminal command to reset the DNS cache in OS X v10.6 through v10.6.8:

sudo dscacheutil -flushcache

发表评论

电子邮件地址不会被公开。

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据