mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-06 23:36:34 +09:00
The A branch of handleFunc returned NXDOMAIN whenever a name had no IPv4 records, without checking IPv6. A name with only AAAA records therefore both existed and did not exist depending on the query type, and resolvers that treat NXDOMAIN as final (musl, busybox) failed to resolve IPv6-only names at all. Mirror the AAAA branch: only return NXDOMAIN when the name has neither A nor AAAA records; when only IPv6 records exist, return NOERROR with no A answers, per RFC 4074. Fixes #22358 Signed-off-by: Navid Khan (Ali) <60997541+Sun-Wukhan@users.noreply.github.com>