cmd/cli: use OS resolver as default upstream for SRV lan hostname

Since application may need SRV record for public domains, which could be
blocked by OS resolver, but not with remote upstreams.

This was reported by a Minecraft user, who seeing thing is broken after
upgrading to v1.4.0 release.
This commit is contained in:
Cuong Manh Le
2025-02-19 22:50:15 +07:00
committed by Cuong Manh Le
parent 5b1faf1ce3
commit c7168739c7
3 changed files with 32 additions and 22 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ const (
ctrldControlUnixSockMobile = "cd.sock"
upstreamPrefix = "upstream."
upstreamOS = upstreamPrefix + "os"
upstreamPrivate = upstreamPrefix + "private"
upstreamOSLocal = upstreamOS + ".local"
dnsWatchdogDefaultInterval = 20 * time.Second
ctrldServiceName = "ctrld"
)