[GH-ISSUE #2201] macos Internal Netbird DNS resolver uses IPv6 #4359

Closed
opened 2026-08-05 00:57:15 -04:00 by saavagebueno · 1 comment
Owner

Originally created by @ez1976 on GitHub (Jun 26, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2201

Hi.
when not connected to netbird, the MacOS is using the regular laptop DNS and all is well.
but once connected to netbird (and IPv6 is enabled on the MAC), any requests to external resources are automatically delayed by 30 seconds.
it seems that if i do nslookup i always get the correct IP but using netbird i can see also an additional line for rdata_46).
if i run:
sudo networksetup -setv6off Ethernet
sudo networksetup -setv6off Wi-Fi

it disables the IPv6 and works right away
so it seems that the internal netbird DNS resolver is trying to query via IPv6

Originally created by @ez1976 on GitHub (Jun 26, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2201 Hi. when not connected to netbird, the MacOS is using the regular laptop DNS and all is well. but once connected to netbird (and IPv6 is enabled on the MAC), any requests to external resources are automatically delayed by 30 seconds. it seems that if i do nslookup i always get the correct IP but using netbird i can see also an additional line for rdata_46). if i run: sudo networksetup -setv6off Ethernet sudo networksetup -setv6off Wi-Fi it disables the IPv6 and works right away so it seems that the internal netbird DNS resolver is trying to query via IPv6
saavagebueno added the bugdnsmacos labels 2026-08-05 00:57:15 -04:00
Author
Owner

@mlsmaycon commented on GitHub (Jun 26, 2024):

Thanks for reporting the issue @ez1976 . I was not able to replicate the issue on 0.28.3. Can you share more information about your routing setup that might influence the DNS resolution? For instance, do you have exit node routes or DNS routes enabled?

Also, is this delay observed only in the agent startup? And having a match domain for the DNS queries you are performing helps with the issue?

<!-- gh-comment-id:2192466575 --> @mlsmaycon commented on GitHub (Jun 26, 2024): Thanks for reporting the issue @ez1976 . I was not able to replicate the issue on 0.28.3. Can you share more information about your routing setup that might influence the DNS resolution? For instance, do you have exit node routes or DNS routes enabled? Also, is this delay observed only in the agent startup? And having a match domain for the DNS queries you are performing helps with the issue?
Sign in to join this conversation.
No Label bug dns macos
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#4359