Long story short, the fix to spurious DNS queries [1] causes breakage for link-local address lookup [2]. While the correct solution would be to extend NSS to support getaddrinfo-like interface, I don't think it'll happen in a reasonable time. Therefore, it may be a better idea to revert the fix to [1] in Gentoo patchset. This will cause a regression resulting in AF_INET/AF_INET6 getaddrinfo() lookups getting all A/AAAA addresses but that's a minor problem compared to returning AAAA link-local addresses without scope identifier (esp. considering they'll usually end up in the same packet). [1]:https://sourceware.org/bugzilla/show_bug.cgi?id=14505 [2]:https://sourceware.org/bugzilla/show_bug.cgi?id=16826
Revert pushed in our 2.25 and 2.26 vendor branch
The patch is in 2.25-r5