I'm afraid this requires to study the source code for musl/getaddrinfo.
Actually, there are similar know issues for incorrect IP priority choice.
E.g. collectd prefers IPv6 for ICMP when IPv6 connectivity is missing:
Collectd network plugin getaddrinfo failed System error - #7 by vgaetera
1 Like