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 <dmytro@tailscale.com>
reviewable/pr727/r1
Dmytro Shynkevych 4 years ago
parent 5acbb149a2
commit cb5f3c0819
No known key found for this signature in database
GPG Key ID: FF5E2F3DAD97EA23

@ -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.

Loading…
Cancel
Save