libresolv does not correctly match answers, particularly if the A and AAAA queries have the same 16-bit DNS transaction ID. Bug 19689 will fix this for the UDP case. The TCP case needs to be fixed as well because servers are permitted to reorder TCP responses to avoid head-of-line blocking. This will improve the detection (in nss_dns) of broken recursive resolvers which do not react well to AAAA queries more reliable.