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.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to