Skip to content

fix(network): restore supported sing-box DNS stub#5

Merged
ZaneL1u merged 1 commit into
mainfrom
codex/fix-singbox-dns-inbound-427
Jun 18, 2026
Merged

fix(network): restore supported sing-box DNS stub#5
ZaneL1u merged 1 commit into
mainfrom
codex/fix-singbox-dns-inbound-427

Conversation

@ZaneL1u

@ZaneL1u ZaneL1u commented Jun 18, 2026

Copy link
Copy Markdown
Owner

背景

线上新建主机失败,控制面报 net.egress_unreachable。受管容器日志显示 sing-box 解码 /etc/sing-box/config.json 失败:unknown inbound type: dns

修改

  • 将容器 DNS stub 从不支持的 type: "dns" inbound 改回 type: "direct" inbound。
  • route.default_interface 和 direct outbound 增加 eth0 约束,避免 direct 分支被 tun 默认路由回环。
  • 补回归测试,禁止再次生成 dns inbound,并锁定 direct 路由接口。
  • 更新 CHANGELOG.mdv4.2.7 条目和 GSD quick 记录。

验证

  • 红灯:go test ./internal/network -run 'TestBuildContainerSingBoxConfig_(DNSStubInboundUsesSupportedDirect|DirectRouteUsesEth0)' -count=1 在修复前失败。\n- 绿灯:go test ./internal/network -run 'TestBuildContainerSingBoxConfig_(DNSStubInboundUsesSupportedDirect|DirectRouteUsesEth0)' -count=1\n- 绿灯:go test ./internal/network -count=1\n- 绿灯:go test ./internal/network ./internal/runtime/tasks ./internal/controlplane/http -count=1\n- 绿灯:go test ./... -count=1\n

@ZaneL1u ZaneL1u merged commit f855e89 into main Jun 18, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant