mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
Client logs show that most DERP bootstrap DNS attempts come from clients with no working network, retrying Tailscale's log and control servers, and that the rest are mostly for names that DERP servers can't answer. Skip the fallback when netmon says no interface is up, and don't try it at all (or log about it) for names that aren't Tailscale's, returning the original DNS error instead via a new dnscache.ErrNoFallback. The name policy lives in a new leaf package, net/dnsfallback/fallbacknames, so cmd/derper can share it. Updates #21028 Change-Id: I25a0e4cc21866837416a24090a986e1b2dd1e78a Signed-off-by: Brad Fitzpatrick <[email protected]>