ihacku
V2EX  ›  问与答

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

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