mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
Some dns servers return NXDOMAIN for queries where the address exists but there is no answer for the given query type(e.g. AAAA-only records). This is not up to spec and musl PROPERLY assumes that means there is no record of any type. Saddly, this happens even with google DNS so we can expect it to happen everywhere. So we use getaddrinfo to separate requests for A and AAAA queries and preventing this. Seems to work locally, though the exact situation where we have a record that returns NXDOMAIN while it exists is easier to reproduce in staging, we should test it after we merge. Fixes #3215