main1234
V2EX  ›  问与答

DNS 解析出多个 IP,如果某个 IP 无效,客户端会发生什么

  •  
  •   main1234 · Jun 5, 2024 · 1386 views
    This topic created in 800 days ago, the information mentioned may be changed or developed.

    DNS 解析出多个 IP ,如果某个 IP 无效,客户端会发生什么??

    2 replies    2024-06-05 14:21:56 +08:00
    wy315700
        1
    wy315700  
       Jun 5, 2024
    看你客户端怎么写的
    有的客户端会挨个尝试连接
    有的客户端会同时发起 syn 请求,然后接受第一个到达的 ack ,丢弃其他请求。
    xxxccc
        2
    xxxccc  
       Jun 5, 2024
    这个问题我之前遇见过,像 java 这种默认只会使用第一个 ip 。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2729 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:14 · PVG 20:14 · LAX 05:14 · JFK 08:14
    ♥ Do have faith in what you're doing.