环境:
在 Homelab 部署了DNS 服务器和 WireGuard,都在10.0.0.1
在 Surge 通过 WireGuard 链接到局域网:
访问 10.0.0.2 可以访问内网的网页
访问 server2.myhome.me 无法访问
我确定WireGuard可以联通,在 DNS 服务器添加了解析记录,在Surge主机上 nslookup server2.myhome.me 可以获得10.0.0.2。
Surge 日志也解析到了 server2.myhome.me 的IP
00:16:48.481818 [Connection] Handled by VIF
00:16:48.481870 [TLS] TLS Client Hello SNI: server2.myhome.me
00:16:48.482943 [Rule] Rule matched: OR ((DOMAIN-SUFFIX,myhome.me,extended-matching), (IP-CIDR,10.0.1.1/24), (IP-CIDR,10.0.0.1/24))
00:16:48.799083 [WireGuard-DNS] Remote DNS completed, using record: 10.0.0.2
00:17:54.315804 [Connection] Disconnect with reason: Closed by client