Leadaxe:singbox-launcher 说明 macOS TUN 的 DNS 绕行限制

Leadaxe 表示,singbox-launcher 的 macOS TUN 能接管连接,但系统解析器会通过限定到 en0 的路由发送 DNS,使查询绕过隧道。自 v2.4.1 起的文档给出临时办法:默认 TUN 为 172.16.0.1/30 时,将系统 DNS 设为子网内的 172.16.0.2,并在 VPN 关闭后恢复。完整解决需以 macOS Network Extension 运行内核,目前没有该计划;mixed 入站配合系统代理也是可用替代。

作者原文

Closing as documented. The macOS behaviour is now described in TROUBLESHOOTING → macOS (shipped since v2.4.1): connections do go into the TUN, but the system resolver sends DNS through a route scoped to en0, so DNS bypasses the tunnel. The section gives a workaround that needs no route changes: set the system DNS to an address inside the TUN subnet (172.16.0.2 with the default 172.16.0.1/30), and put it back when the VPN is off.

A complete fix means running the core as a macOS Network Extension. That is not planned for now. Until then, your setup (mixed inbound + system proxy) is a valid alternative. Thanks again for raising it.