清除本地DNS缓存,win/mac/linux (By-Ruicky)

1.jpg

macOS Sierra 10.12.0

1
sudo killall -HUP mDNSResponder

OSX 10.11.0

1
sudo killall -HUP mDNSResponder

OSX 10.10.4

1
sudo killall -HUP mDNSResponder

OSX 10.10.0 – 10.10.3

1
sudo discoveryutil mdnsflushcache

OSX 10.9 – 10.8 – 10.7

1
sudo killall -HUP mDNSResponder

OSX 10.5 – 10.6

1
sudo dscacheutil -flushcache

Windows

1
ipconfig /flushdns

Linux (depending on what you’re running)

1
/etc/init.d/named restart
1
/etc/init.d/nscd restart

参考资料

Clear the local DNS cache in macOS Sierra, OSX, Linux and Windows

-------------------本文结束 感谢您的阅读-------------------
坚持原创技术分享,您的支持将鼓励我继续创作!