V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
liuweiqing
V2EX  ›  OpenWrt

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

  •  
  •   liuweiqing · 38 天前 · 644 次点击
    这是一个创建于 38 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5202 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 09:01 · PVG 17:01 · LAX 01:01 · JFK 04:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.