免费注册 查看新帖 |

Chinaunix

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

[DNS] 两条A记录将同一个域名指向两个IP,是否能实现轮巡? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-20 23:19 |只看该作者 |倒序浏览
irun            IN      A       192.168.1.134
irun            IN      A       192.168.1.133


这样的话访问irun是否是第一次访问192.168.1.134,第二次访问192.168.1.133???


可是为什么ping的话永远只返回其中一个IP的回应呢?

论坛徽章:
0
2 [报告]
发表于 2007-09-21 00:34 |只看该作者
理论上是这个样子的
不过有很多中间服务器 系统本身 浏览器本身 都会缓存一段时间
所以呢~~~

论坛徽章:
0
3 [报告]
发表于 2007-09-21 07:00 |只看该作者
原帖由 cc_cj 于 2007-9-20 23:19 发表
irun            IN      A       192.168.1.134
irun            IN      A       192.168.1.133


这样的话访问irun是否是第一次访问192.168.1.134,第二次访问192.168.1.133???


可是为什么ping的 ...


LZ用的一定是WINDOWS系统吧,LINUX/UNIX类系统不存在这个问题,WINDOWS系统有个缓存域名解析结果的服务把它关了就好了:

sd.jpg (131.96 KB, 下载次数: 73)

DNS缓存服务

DNS缓存服务

论坛徽章:
0
4 [报告]
发表于 2007-09-21 09:39 |只看该作者
The A stands for address, and each resource record maps a name to an address. wormhole.movie.edu acts as a router. It has two addresses associated with its name and therefore two address records. Unlike host table lookups, a DNS lookup can return more than one address for a name; a lookup of wormhole.movie.edu returns two. If the requestor and name server are on the same network, some name servers place the "closest" address first in the response for better performance. This feature is called address sorting and is covered in Chapter 10. If address sorting does not apply, the addresses are rotated between queries so subsequent responses list them in a different order. This "round robin" feature first shows up in BIND 4.9.

论坛徽章:
0
5 [报告]
发表于 2007-09-23 20:28 |只看该作者
我也觉得是TTL的原因,但是我换了一台机器ping,返回的结果还是同一个IP
用的是CentOS5,主要是因为原来是在双线机房现在搬到BGP机房内了,所以。。。。。。其实到不需要两个server提供服务

不知道这样到底是不是能访问到两台机器上,目前已经更改过DNS注册了,大家等消息吧,:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP