在Linux/Windows/Mac上刷新DNS缓存的方法

刷新dns缓存让你可以得到新的域名解析:

# Windows
ipconfig /flushdn
# Linux
/etc/rc.d/init.d/nscd restart || /etc/init.d/nscd restart
# Mac
type  dscacheutil -flushcache || sudo killall -HUP mDNSResponde

 

posted @ 2015-05-14 13:25  long#long  阅读(2297)  评论(0编辑  收藏  举报