docker 运行 openwrt 后,宿主机会出现 dns 解析错误,求助

82 天前
 liuweiqing

docker 运行 openwrt 后,宿主机会对某些网站出现 dns 解析错误

Google ,YouTube 正常,但请求 binance 会返回 0.0.0.0 ,请求 okx 会返回 169.254.0.2

➜  ~ curl -v "https://www.okx.com"


*   Trying 169.254.0.2:443...
^C
➜  ~ curl -v "https://www.binance.com"


*   Trying 0.0.0.0:443...
* connect to 0.0.0.0 port 443 failed: 拒绝连接
*   Trying [::]:443...
* connect to :: port 443 failed: 拒绝连接
* Failed to connect to www.binance.com port 443 after 16 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to www.binance.com port 443 after 16 ms: Couldn't connect to server

而其它机器都能使用 openwrt 代理

当我在其他主机上运行 docker 版的 openWRT ,还是同样的机器就能正常的访问

➜  ~ curl "https://www.binance.com" 


➜  ~ curl https://www.binance.com 


➜  ~ curl https://www.okx.com/api/v5/public/instruments\?instType\=FUTURES                       
{"code":"0","data":[{"alias":"next_quarter","auctionEndTime":"","baseCcy":"","category":"1","ctMult":"1","ctType":"linear","ctVal":"100","ctValCcy":"MEMEFI","expTime":"1745568000000","instFamily":"MEMEFI-USDT","instId":"MEMEFI-USDT-250425","instType":"FUTURES","lever":"5","listTime":"1729839600188","lotSz":"1","maxIcebergSz":"100000000.0000000000000000","maxLmtAmt":"20000000","maxLmtSz":"100000000","maxMktAmt":"","maxMktSz":"1000","maxStopSz":"1000","maxTriggerSz":"100000000.0000000000000000","maxTwapSz":"100000000.0000000000000000","minSz":"1","optType":"","quoteCcy":"","ruleType":"pre_market","settleCcy":"USDT","state":"live","stk

用的 openwrt 是这个

https://github.com/14790897/OpenWrt-In-Docker

699 次点击
所在节点    OpenWrt
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1088914

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX