Windows
Linux (根据实际运行的服务执行相应的命令)
1 2
| /etc/init.d/named restart /etc/init.d/nscd restart
|
macOS
1
| sudo killall -HUP mDNSResponder
|
例外:
OSX Yosemite 10.10.0 – 10.10.3
1
| sudo discoveryutil mdnsflushcache
|
OSX Leopard Snow Leopard 10.5 – 10.6
1
| sudo dscacheutil -flushcache
|