OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
liuweiqing
V2EX  ›  OpenWrt

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

  •  
  •   liuweiqing · Nov 12, 2024 · 1512 views
    This topic created in 593 days ago, the information mentioned may be changed or developed.

    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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3800 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 04:20 · PVG 12:20 · LAX 21:20 · JFK 00:20
    ♥ Do have faith in what you're doing.