mzer0
V2EX  ›  问与答

如果一个域名绑定多个 ip, 浏览器如何选择访问哪个 ip?

  •  
  •   mzer0 · Dec 29, 2015 · 7107 views
    This topic created in 3980 days ago, the information mentioned may be changed or developed.
    9 replies  •  2015-12-29 19:10:43 +08:00
    jasontse
    jasontse
    Dec 29, 2015 via iPad
    1
    Google: DNS 轮询
    msg7086
    msg7086
    Dec 29, 2015 via Android
    2
    dns ,然后看自己的实现。随机或者轮询都可以。
    mzer0
    mzer0
    OP
    Dec 29, 2015
    3
    @jasontse 我查了资料但还是不明白. 有几种可能:

    > DNS 解析的时候, 多个 ip 的顺序是随机的, 浏览器总是先解析第一个.
    > 多个 ip 的顺序是固定的, 浏览器随机选择解析.
    > 多个 ip 的顺序是随机的, 浏览器随机解析.
    mzer0
    mzer0
    OP
    Dec 29, 2015
    4
    @msg7086 DNS 发送 ip 的顺序总是固定的, 还是看具体实现?
    jasontse
    jasontse
    Dec 29, 2015 via iPad
    5
    @mzer0 正常情况下 DNS 返回的结果顺序是每次循环的。但是具体跟那个连接看客户端。
    mzer0
    mzer0
    OP
    Dec 29, 2015 via iPhone
    6
    @jasontse Thanks
    usapla
    usapla
    Dec 29, 2015
    7
    hosts 里设置的那个 :)
    lyragosa
    lyragosa
    Dec 29, 2015❤️1
    8
    我测试过,在 dnspod 里面对同一个 www 设多个 A 记录
    最后是随机
    popu111
    popu111
    Dec 29, 2015 via Android
    9
    如果你用 xns 的话,他们有个 x 优化会自动判断最合适的 ip 。



    然而坑爹的经常无法解析。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1853 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 06:21 · PVG 14:21 · LAX 22:21 · JFK 01:21
    ♥ Do have faith in what you're doing.