You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/dns/resolver
Jonathan Nobels 5e54819cee
net/dns: cache dns.Config for reuse when compileConfig fails (#16059)
fixes tailscale/corp#25612

We now keep track of any dns configurations which we could not
compile. This gives RecompileDNSConfig a configuration to
attempt to recompile and apply when the OS pokes us to indicate
that the interface dns servers have changed/updated.   The manager config
will remain unset until we have the required information to compile
it correctly which should eliminate the problematic SERVFAIL
responses (especially on macOS 15).

This also removes the missingUpstreamRecovery func in the forwarder
which is no longer required now that we have proper error handling
and recovery manager and the client.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
6 months ago
..
debug.go all: use Go 1.22 range-over-int 2 years ago
doh_test.go net/dns/resolver: remove maxDoHInFlight 3 years ago
forwarder.go net/dns: cache dns.Config for reuse when compileConfig fails (#16059) 6 months ago
forwarder_test.go net/netmon: publish events to event bus 8 months ago
macios_ext.go all: avoid repeated default interface lookups 3 years ago
tsdns.go net/dns: cache dns.Config for reuse when compileConfig fails (#16059) 6 months ago
tsdns_server_test.go all: update copyright and license headers 3 years ago
tsdns_test.go net/netmon: publish events to event bus 8 months ago