From cb5f3c081910b2822ce9eaf3e0667bd9485924ee Mon Sep 17 00:00:00 2001 From: Dmytro Shynkevych Date: Thu, 27 Aug 2020 16:59:58 -0400 Subject: [PATCH] tsdns: log when settings upstreams. It turns out that otherwise we don't know what exactly was set. Also remove the now unused RootDomain config option. Signed-off-by: Dmytro Shynkevych --- wgengine/tsdns/tsdns.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wgengine/tsdns/tsdns.go b/wgengine/tsdns/tsdns.go index 2d663f5fc..d2021bf1e 100644 --- a/wgengine/tsdns/tsdns.go +++ b/wgengine/tsdns/tsdns.go @@ -82,8 +82,6 @@ type Resolver struct { type ResolverConfig struct { // Logf is the logger to use throughout the Resolver. Logf logger.Logf - // RootDomain is the domain whose subdomains will be resolved locally as Tailscale nodes. - RootDomain string // Forward determines whether the resolver will forward packets to // nameservers set with SetUpstreams if the domain name is not of a Tailscale node. Forward bool @@ -153,6 +151,7 @@ func (r *Resolver) SetUpstreams(upstreams []net.Addr) { if r.forwarder != nil { r.forwarder.setUpstreams(upstreams) } + r.logf("set upstreams: %v", upstreams) } // EnqueueRequest places the given DNS request in the resolver's queue.