一、Linux
重启nscd即可 /etc/init.d/nscd restart
较老的版本 /etc/rc.d/init.d/nscd restart
二、Windows 以管理员身份运行Cmd
ipconfig /flushdns
三、Mac OS X执行以命令
sudo killall -HUP mDNSResponder
较老的版本 sudo dscacheutil -flushcache | lookupd -flushcache
四、参考
https://cnzhx.net/blog/how-to-flush-dns-cache-in-linux-windows-mac/
版权声明:本文为u013379717原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。