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 authored and Cuong Manh Le committed 2025-02-21 20:44:34 +07:00
1 parent 5b1faf1ce3
commit c7168739c7
3 files changed
+32 -22

No files matched your search

+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"
)