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/wgengine/tsdns
Josh Bleecher Snyder 6e8328cba5 wgengine/tsdns: replace connections when net link changes (macOS)
When the network link changes, existing UDP sockets fail immediately
and permanently on macOS.

The forwarder set up a single UDP conn and never changed it.
As a result, any time there was a network link change,
all forwarded DNS queries failed.

To fix this, create a new connection when send requests
fail because of network unreachability.

This change is darwin-only, although extended it to other platforms
should be straightforward.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
4 years ago
..
forwarder.go wgengine/tsdns: replace connections when net link changes (macOS) 4 years ago
map.go tailcfg, tsdns: derive root domains from list of nodes (#708) 4 years ago
map_test.go tailcfg, tsdns: derive root domains from list of nodes (#708) 4 years ago
neterr_darwin.go wgengine/tsdns: replace connections when net link changes (macOS) 4 years ago
neterr_other.go wgengine/tsdns: replace connections when net link changes (macOS) 4 years ago
tsdns.go wgengine/tsdns: delegate bonjour service rdns requests 4 years ago
tsdns_server_test.go tsdns: fix accidental rejection of all non-{A, AAAA} questions. 4 years ago
tsdns_test.go wgengine/tsdns: delegate bonjour service rdns requests 4 years ago