Open ZqinKing opened 1 day ago
使用Xray配置负载均衡器节点,遇到无法使用地址为域名的节点。如果节点地址时IPv4/IPv6则可以正常使用。 一旦使用域名则会直接退回到fall节点(fall节点是域名也可正常使用)。DNS使用的是SMARTDNS,命令行测试,报错时使用nslookup向::1查询节点域名,能则正常解析。
Xray负载均衡使用地址为域名的节点时会直接退回到后被节点。
Xray负载均衡正常支持地址为域名的几点
Xray 24.11.21 (Xray, Penetrates Everything.) OpenWrt (go1.23.3 linux/arm64) A unified platform for anti-censorship. 2024/11/27 00:55:43 [Info] infra/conf/serial: Reading config: &{Name:/tmp/etc/passwall/acl/default/TCP_UDP_SOCKS.json Format:json} 2024/11/27 00:55:43 [Debug] app/log: Logger started 2024/11/27 00:55:43 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:1070 2024/11/27 00:55:43 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:1041 2024/11/27 00:55:43 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1070 2024/11/27 00:55:43 [Info] transport/internet/udp: listening UDP on 127.0.0.1:1070 2024/11/27 00:55:43 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1041 2024/11/27 00:55:43 [Info] transport/internet/udp: listening UDP on 0.0.0.0:1041 2024/11/27 00:55:43 [Warning] core: Xray 24.11.21 started 2024/11/27 00:55:43 [Info] app/dispatcher: taking platform initialized detour [blc-YUQE5rNO:Reality-Raw-Hk01] for [tcp:www.google.com:443] 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Info] app/dispatcher: taking platform initialized detour [blc-yyLgyv26:Reality-Raw-King-V6] for [tcp:www.google.com:443] 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:45 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:45 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:46 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:46 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:46 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:46 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:46 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:46 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:47 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:47 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:47 [Info] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed 2024/11/27 00:55:47 [Warning] app/observatory: the outbound blc-YUQE5rNO:Reality-Raw-Hk01 is dead: GET request failed:app/observatory: outbound failed to relay connection > Get "https://www.google.com/generate_204": io: read/write on closed pipewith outbound handler report underlying connection failed > app/observatory: underlying connection error > app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed 2024/11/27 00:55:47 [Info] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx-ipv6.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed 2024/11/27 00:55:47 [Warning] app/observatory: the outbound blc-yyLgyv26:Reality-Raw-King-V6 is dead: GET request failed:app/observatory: outbound failed to relay connection > Get "https://www.google.com/generate_204": io: read/write on closed pipewith outbound handler report underlying connection failed > app/observatory: underlying connection error > app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx-ipv6.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed
主线最新版,DNS使用的smartdns。
No response
补充一下,DNSMASQ监听的V6的TCP也是能正常查询的:
描述您遇到的bug
使用Xray配置负载均衡器节点,遇到无法使用地址为域名的节点。如果节点地址时IPv4/IPv6则可以正常使用。 一旦使用域名则会直接退回到fall节点(fall节点是域名也可正常使用)。DNS使用的是SMARTDNS,命令行测试,报错时使用nslookup向::1查询节点域名,能则正常解析。
复现此Bug的步骤
Xray负载均衡使用地址为域名的节点时会直接退回到后被节点。
您想要实现的目的
Xray负载均衡正常支持地址为域名的几点
日志信息
Xray 24.11.21 (Xray, Penetrates Everything.) OpenWrt (go1.23.3 linux/arm64) A unified platform for anti-censorship. 2024/11/27 00:55:43 [Info] infra/conf/serial: Reading config: &{Name:/tmp/etc/passwall/acl/default/TCP_UDP_SOCKS.json Format:json} 2024/11/27 00:55:43 [Debug] app/log: Logger started 2024/11/27 00:55:43 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:1070 2024/11/27 00:55:43 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:1041 2024/11/27 00:55:43 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1070 2024/11/27 00:55:43 [Info] transport/internet/udp: listening UDP on 127.0.0.1:1070 2024/11/27 00:55:43 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1041 2024/11/27 00:55:43 [Info] transport/internet/udp: listening UDP on 0.0.0.0:1041 2024/11/27 00:55:43 [Warning] core: Xray 24.11.21 started 2024/11/27 00:55:43 [Info] app/dispatcher: taking platform initialized detour [blc-YUQE5rNO:Reality-Raw-Hk01] for [tcp:www.google.com:443] 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Info] app/dispatcher: taking platform initialized detour [blc-yyLgyv26:Reality-Raw-King-V6] for [tcp:www.google.com:443] 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:43 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:43 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:45 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:45 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:46 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:46 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:46 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:46 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:46 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:46 [Debug] transport/internet: dialing to tcp:xxxx.xxxxxx.top:443 2024/11/27 00:55:47 [Info] transport/internet/tcp: dialing TCP to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:47 [Debug] transport/internet: dialing to tcp:xxxx-ipv6.xxxxxx.top:8443 2024/11/27 00:55:47 [Info] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed 2024/11/27 00:55:47 [Warning] app/observatory: the outbound blc-YUQE5rNO:Reality-Raw-Hk01 is dead: GET request failed:app/observatory: outbound failed to relay connection > Get "https://www.google.com/generate_204": io: read/write on closed pipewith outbound handler report underlying connection failed > app/observatory: underlying connection error > app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed 2024/11/27 00:55:47 [Info] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx-ipv6.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed 2024/11/27 00:55:47 [Warning] app/observatory: the outbound blc-yyLgyv26:Reality-Raw-King-V6 is dead: GET request failed:app/observatory: outbound failed to relay connection > Get "https://www.google.com/generate_204": io: read/write on closed pipewith outbound handler report underlying connection failed > app/observatory: underlying connection error > app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [dial tcp: lookup xxxx-ipv6.xxxxxx.top on [::1]:53: server misbehaving] > common/retry: all retry attempts failed
截图
系统相关信息
主线最新版,DNS使用的smartdns。
其他信息
No response