免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3198 | 回复: 1
打印 上一主题 下一主题

[DNS] 如何即时更新机器DNS缓存 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-14 10:14 |只看该作者 |倒序浏览
RT,
ipconfig /flushdns 这个好像是wins机器的
linux机器如何让机器即时更新缓存,因现在做测试,A记录每半小时切换一次。
请各位达人赐教

论坛徽章:
0
2 [报告]
发表于 2010-01-14 11:01 |只看该作者
linux/unix 本身是不会缓存解析记录的,除非你人为安装了dnscache软件。举个简单的例子:


[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.2): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.4): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.4): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.3): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.2): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.3): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.4): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
[root@ns1 root]#ping test.aidns.cn
PING test.aidns.cn (2.2.2.3): 56 data bytes
^C
--- test.aidns.cn ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss

基本上每次解析的结果是轮询的,如果缓存结果的话不是这个效果

[ 本帖最后由 llzqq 于 2010-1-14 11:05 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP