歡迎您光臨本站 註冊首頁

兩條A記錄將同一個域名指向兩個IP,是否能實現輪巡?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

兩條A記錄將同一個域名指向兩個IP,是否能實現輪巡?

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的回應呢?
《解決方案》

理論上是這個樣子的
不過有很多中間伺服器 系統本身 瀏覽器本身 都會緩存一段時間
所以呢~~~
《解決方案》

原帖由 cc_cj 於 2007-9-20 23:19 發表 http://bbs.chinaunix.net/images/common/back.gif
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系統有個緩存域名解析結果的服務把它關了就好了:
《解決方案》

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.
《解決方案》

我也覺得是TTL的原因,但是我換了一台機器ping,返回的結果還是同一個IP
用的是CentOS5,主要是因為原來是在雙線機房現在搬到BGP機房內了,所以。。。。。。其實到不需要兩個server提供服務

不知道這樣到底是不是能訪問到兩台機器上,目前已經更改過DNS註冊了,大家等消息吧,:)

[火星人 ] 兩條A記錄將同一個域名指向兩個IP,是否能實現輪巡?已經有876次圍觀

http://coctec.com/docs/service/show-post-35549.html