Open Thunderbottom opened 1 month ago
Thanks for opening this bug @Thunderbottom , the current behavior is the following:
We configure DNS and test it right the way, it should fail faster for this initial test. Decreasing timeout will help but not setting it up is the best approach.
Describe the problem
In the latest version, netbird tries to resolve DNS before connecting to the peers. This causes the DNS resolution to fail in case where the DNS being used is a private DNS behind a routing peer. This further causes netbird to wait for the DNS resolution to timeout before connecting to peers on the network, and hence, it takes at least 15 seconds in our case to connect to the first peer.
After the peer connects, the DNS resolution works perfectly fine. But this delay in most cases is unbearable and causes usability issues for a lot of people.
Logs:
In the logs it took a few seconds to connect, but usually on
netbird up
, this takes at least 10-15 seconds to connect.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The DNS resolution should take place after the peer connections are initialized. There's no need for netbird to replace and resolve DNS before connecting to peers.
Are you using NetBird Cloud?
Self-hosted NetBird's control plane.
NetBird version
netbird version
:0.27.7