mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-19 15:01:29 +02:00
Async server-domain resolution risked blackholing infra DNS at bootstrap: if OS DNS was reconfigured to route through a dead exit node before the background resolve ran, the cache never populated. Resolve cold domains (no cached record) synchronously while NetBird has not yet taken over the system resolver and will serve DNS (dnsWillBeServed), so the cache is primed via the working OS resolver before takeover. Stale and post-takeover resolves stay async to keep the engine sync lock unblocked.