On 24 Aug 2020, at 23:32, Rich Felker wrote: > > Does such a distinction exist? I thought res_query was just equivalent > to res_mkquery+res_send and that calling res_send directly would get > you the same errors. I thought so too, but I’ve been reading the musl implementation. ;-) After looking more at the other implementations, I think Florian is correct though: it’s more like res_mkquery+res_send+setting h_errno and the return value based on the RCODE of the response. Regards, Daniel