ihacku
V2EX  ›  问与答

当一个网址有多个ip的时候 浏览器是怎么访问的呢

  •  
  •   ihacku · Oct 26, 2011 · 7183 views
    This topic created in 5504 days ago, the information mentioned may be changed or developed.
    可能不同情况下也不太一样 我在想能不能用wireshark抓下包看看
    14 replies  •  1970-01-01 08:00:00 +08:00
    est
    est
    Oct 26, 2011
    1
    任选一个呗。
    ihacku
    ihacku
    OP
    Oct 26, 2011
    2
    @est 会不会有时候会并发
    walkingway
    walkingway
    Oct 26, 2011
    3
    dns解析到哪个就是哪个呗
    gonbo
    gonbo
    Oct 26, 2011
    4
    @ihacku firebug 看看.firefox的确是并发。先进点的browser都会并发访问。
    sarices
    sarices
    Oct 26, 2011
    5
    取决于dns
    reus
    reus
    Oct 26, 2011
    6
    跟浏览器没有关系,dns服务器返回哪个地址就访问哪个地址
    Semon
    Semon
    Oct 26, 2011
    7
    这种情况貌似DNS会随机分配,浏览器看dns的返回,自己应该没有选择权。
    ruguo123
    ruguo123
    Oct 26, 2011
    8
    这个比较专业
    ihacku
    ihacku
    OP
    Oct 26, 2011
    9
    @Semon @reus @sarices @walkingway 我在chrome://net-internals/#dns里看到有时候会返回多个ip 我并不是说的cdn那种
    flyingkid
    flyingkid
    Oct 26, 2011
    10
    我这有15台下载服务器,我测试过,觉得比较像随机。
    mudone
    mudone
    Oct 27, 2011
    12
    这个得看域名DNS服务商的机制,一般的域名DNS都是轮询。高级的DNS服务商可以提供带权重的轮询,以及Failover故障转移等。
    ihacku
    ihacku
    OP
    Oct 27, 2011
    13
    @reus 谢谢 正是我想要的答案
    回答中说选哪个是与浏览器无关的 是由操作系统决定的 windows会选择最先回应的节点
    reus
    reus
    Oct 27, 2011
    14
    但是浏览器会得到一个list,在评论里有争议,我倾向于我的理解… 不过也未经验证就是了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4006 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:25 · PVG 17:25 · LAX 01:25 · JFK 04:25
    ♥ Do have faith in what you're doing.