[squid-users] New Squid prefers IPv4
Antony Stone
Antony.Stone at squid.open.source.it
Tue Feb 6 15:24:34 UTC 2024
On Tuesday 06 February 2024 at 16:16:24, Rob van der Putten wrote:
> Hi there
>
> On 05/02/2024 18:32, Antony Stone wrote:
> >
> > I believe ping (ICMP) timings are irrelevant. The client (squid in this
> > case) does a DNS lookup for the hostname's A and AAAA records,
>
> A before AAAA. Bind responds within the same millisecond.
I think the simultaneity of these lookups is unimportant.
> > then makes two simultaneous HTTP connections to the server (one IPv4, on
> > IPv6) and whichever one responds first *by HTTP* is then regarded as being
> > the best way to route traffic thereafter.
>
> I do not see Squid opening two connections simultaneously and then
> closing one. It's just one connection.
Are you sure this is not because Squid has already made earlier connections to
this name, decided that IPv4 is better, and continues to use that when you are
now testing it?
I would expect you to have to start from an "undecided" Squid setup (I have no
idea where it keeps this informatin for later use, though) to find out whether
this is what's going on.
Antony.
--
1960s: Let's build a network which can withstand a nuclear war!
1970s: Hm, that looks good, we'll run it on TCP/IP.
1980s: Nice, how about letting everyone join?
1990s: Hey, you can make money out of this!
2000s: Oh, you can lose it, too.
2010s: Alright, let's just plug absolutely everything into it.
2020s: Meh, my lightswitch is now connected to my lamp via China.
Please reply to the list;
please *don't* CC me.
More information about the squid-users
mailing list