How to Flush DNS in Windows
Windows下如何清空DNS缓存
In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache.
在微软windows下,你可以用命令 ipconfig /flushdns 来清空dns 缓存内容。
You can also use the command ipconfig /displaydns to view the DNS resolver cache.
你也可以用命令 ipconfig /displaydns 来查看dns 缓存内容。
如果是 Windows ( XP, ME, 2000, 98)系统:
1.开始——>运行——>输入 cmd 并回车
2.在打开的命令行窗口,输入 ipconfig /flushdns
完成!你的Windows DNS 缓存已经得到刷新
如果是Windows Vista 或 Windows 7 系统:
1单击屏幕左下角的Microsoft Windows Vista或Windows 7 的开始标志
2单击 所有程序
3单击 附件
4右键单击命令提示符
5选择 以管理员身份运行
6在打开的命令行窗口,输入 ipconfig /flushdns
How to Flush DNS in Mac OSX
Mac OSX下如何清空DNS缓存
In Mac OSX, you can use the command lookupd -flushcache to flush the DNS resolver cache.
在Mac OSX中,你可以用这个命令lookupd -flushcache来清空保留的缓存。
Mac OSX在命令行窗口(terminal)输入命令 lookupd -flushcache 清空刷新dns 解析缓存
较新的苹果Mac OS X系统应该使用下面的命令:
type dscacheutil -flushcache
How to Flush DNS in Linux/Ubuntu
Linux/Ubuntu 下如何清空DNS缓存
In Linux, the nscd daemon manages the DNS cache.
在linux中,nscd进程负责管理DNS缓存。
To flush the DNS cache, restart the nscd daemon.
要清空DNS缓存,重启nscd 守护进程就行了。
To restart the nscd daemon, use the command /etc/rc.d/init.d/nscd restart
要重启nscd 进程,使用命令 /etc/rc.d/init.d/nscd restart
如果是比较新的Linux版本,你可能需要使用下面的命令:
/etc/init.d/nscd restart
如果没有nscd也没关系,网上解决方法大都是
sudo aptitude install nscd
sudo /etc/init.d/nscd restart
Ubuntu下我们可以直接 sudo /etc/init.d/dns-clean start
How to Flush DNS in Android
Android(安卓)如何刷新DNS缓存
Android(安卓)下直接开关下飞行模式