gpt4 book ai didi

docker - 如何解决SG客户的ENOTFOUND错误

转载 作者:行者123 更新时间:2023-12-02 19:42:48 24 4
gpt4 key购买 nike

我将安全网关的目标主机设置为ssldemo而不是IP地址的主机名。我使用'--net="host"'选项启动了SG Client,以便解析主机名。当然,主机操作系统可以解析主机名。请查看 ping 主机名的日志。但是,执行trx时,SG Client无法解析主机名并出现"ENOTFOUND"错误。我试图添加'--net="host" --add-host "ssldemo:192.168.56.1"'选项,但是出现了同样的错误。

您能教我如何解决"ENOTFOUND"错误吗?

linux-h4fn:~ #  docker run -it ibmcom/secure-gateway-client *GATEWAY_ID* --net="host"
IBM Bluemix Secure Gateway Client version 1.1.0
press enter for the command line
[2015-07-06 10:46:50.383] [INFO] The Secure Gateway tunnel is connected
[2015-07-06 10:46:56.824] [INFO] Connection #78 is being established to ssldemo:443
[2015-07-06 10:46:56.845] [INFO] Connection #78 established to ssldemo:443
[2015-07-06 10:46:56.950] [ERROR] Connection #78 to destination ssldemo:443 had error: ENOTFOUND
[2015-07-06 10:46:56.972] [INFO] Connection #78 to ssldemo:443 was closed
[2015-07-06 10:46:58.080] [INFO] Connection #79 is being established to ssldemo:443
[2015-07-06 10:46:58.100] [INFO] Connection #79 established to ssldemo:443
[2015-07-06 10:46:58.296] [ERROR] Connection #79 to destination ssldemo:443 had error: ENOTFOUND

linux-h4fn:~ # ping ssldemo
PING ssldemo (192.168.56.1) 56(84) bytes of data.
64 bytes from ssldemo (192.168.56.1): icmp_seq=1 ttl=128 time=5.01 ms
64 bytes from ssldemo (192.168.56.1): icmp_seq=2 ttl=128 time=11.4 ms

最佳答案

安全网关服务无法识别DNS名称。您可以尝试使用IP地址代替主机名吗?

关于docker - 如何解决SG客户的ENOTFOUND错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31249266/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com