On Tue, Sep 08, 2026 at 11:38:33AM +0200, Vincent Lefevre wrote: > On 2026-09-08 09:43:40 +0200, [email protected] wrote: > > On Tue, Sep 08, 2026 at 08:30:48AM +0100, Joe wrote: > > > No, you can disable IPv6 in the router and in the OS kernel, and some > > > applications will *still* try to use it, and only give up after a long > > > timeout. > > > > Are you sure it is the /application/ and not the /host name/ doing it? > > Perhaps the resolver is returning first the AAAA record, then the A > > record and you might want to look into fixing that. > > Indeed, this is an issue from the resolver. I've tried getaddrinfo() > with both AF_UNSPEC and AF_INET (I could quickly get code with AI, > but I had to do a small fix). I've checked that on my machine at home, > getaddrinfo with AF_UNSPEC returns both the IPv6 and the IPv4 > addresses, as expected. > > But on the problematic machine citron, getaddrinfo with AF_UNSPEC > returns only the IPv6 address. With IPv4, it returns the IPv4 address, > though. > > This inconsistency can explain the behavior of the various > applications, which may have different strategies for the call(s) > to getaddrinfo.
I'm too lazy to enable javascript in my browser at the moment, so I only see "just a moment", but judging from the subject line, this might be something for you: https://stackoverflow.com/questions/55627377/getaddrinfo-returns-only-ipv6-when-using-af-unspec Cheers -- t
signature.asc
Description: PGP signature

