Okay, this is literally incomprehensible: on my Alpine v3.24 VPS, drill github.c...

@nytpu@tilde.zone

Okay, this is literally incomprehensible: on my Alpine v3.24 VPS, drill github.com, nslookup github.com, getent ahosts github.com, ping github.com, lynx https://github.com/, and manually sending hand-written queries to the configured DNS servers all return/use the correct IPv4 address, and return nothing as expected when querying for AAAA records.

And yet, curl and git both have completely nonsense IPv6 addresses returned (they're random Cloudflare addresses) alongside the correct IPv4 address, and then prioritize them. Those tools also completely ignore any overrides in /etc/hosts.

There is literally no possible source for those addresses to be returned when resolving github.com AFAICT and no way to override them other than having to edit literally everything that might touch github to add -4 to those utilities' command lines

#Linux #AlpineLinux