Jan 17

windows下清空本机DNS缓存 不指定

bkkkd , 14:06 , 网摘 » 收集处 , 评论(1) , 引用(0) , 阅读(11230) , Via 本站原创 | |
在修改完dns后,很多域名都没有马上生,需要过一段时间才能生效.这个大家都知道.一般人都是通过ping来查看域名是否已经使用新的ip地址.但在如果我已经ping过一次后,系统就会把域名和ip缓存起来.这样次就不需要每次访问的时候都先访问一下dns服务器.但对于我们在检查是否已经生效带来不确定.
因此,我们每次ping之前最好还是清一下域名与ip在本地系统上的缓存.方法很简单
ipconfig /flushdns

相应的还有
ipconfig /displaydns

Display the contents of the DNS Resolver Cache.
显示dns cache的内容,包括hosts文件里的信息也会显示出来。

ipconfig这个命令经常用,常用的有:
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.


但是这个关于dns的功能很少用。还有
/registerdns Refreshes all DHCP leases and re-registers DNS names
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.

Popularity: 23%
lee Homepage
January 22, 2012 08:40
小生弟弟,哥哥来给你拜年啦。祝小生弟弟工作顺利,小夫妻幸福美满。
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]