刷新 DNS 缓存需要重起 nscd daemon:
1. 要重起nscd daemon,在命令行窗口(terminal)输入/etc/rc.d/init.d/nscd restart 2. 命令执行完毕,你的DNS缓存就被刷新了。 如果是比较新的Linux版本,你可能需要使用下面的命令: /etc/init.d/nscd restart 以下为其它系统
1.windowsipconfig /flushdns2.CentOS
/etc/rc.d/init.d/nscd restart # OR nscd -i hosts #archlinux below /etc/rc.d/nscd restart3.Mac OS
#Mac OS X Leopard lookupd -flushcache #Mac OS X dscacheutil -flushcache