刷新 DNS 缓存需要重起 nscd daemon:
1. 要重起nscd daemon,在命令行窗口(terminal)输入/etc/rc.d/init.d/nscd restart 2. 命令执行完毕,你的DNS缓存就被刷新了。 如果是比较新的Linux版本,你可能需要使用下面的命令: /etc/init.d/nscd restart 以下为其它系统
1.windows
ipconfig /flushdns
2.CentOS
/etc/rc.d/init.d/nscd restart
# OR
nscd -i hosts
#archlinux below
/etc/rc.d/nscd restart
3.Mac OS
#Mac OS X Leopard
lookupd -flushcache
#Mac OS X
dscacheutil -flushcache
转载于:https://blog.51cto.com/felixzhang/1856645
本文介绍了如何在不同操作系统中刷新DNS缓存,包括Linux、Windows和MacOS等。对于Linux系统,提供了针对不同发行版的具体命令;对于Windows,可以通过ipconfig/flushdns命令操作;而对于MacOS,则给出了lookupd-flushcache和dscacheutil-flushcache两个命令。


被折叠的 条评论
为什么被折叠?



