<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello Alex ,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks for the nice info .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I will consider what you said .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Alex Rousskov <rousskov@measurement-factory.com><br>
<b>Date: </b>Monday, May 2, 2022 at 8:38 AM<br>
<b>To: </b>Ahmad Alzaeem <0xff1f@gmail.com>, Squid Users <squid-users@lists.squid-cache.org><br>
<b>Subject: </b>Re: [squid-users] squid5 Happy Eyeballs - Is it possible to enable IPV4 only or IPV6 only ?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">On 5/1/22 23:49, Ahmad Alzaeem wrote:<br>
<br>
> sometime the IPV4 <br>
> instance receive DNS resolution of the destination as IPV6 and the <br>
> connection fails !!<br>
> <br>
> sometimes the IPV4 instance receive the DNS resolution of the <br>
> destination as IPV6 and the connection fail .<br>
> <br>
> Is there any option we can do based on the environment above ?<br>
<br>
<br>
Without Squid code modifications, your options are:<br>
<br>
* Use a custom DNS resolver (configuration) that never sends IPv4 <br>
address records to an IPv6-only Squid. Use a custom DNS resolver <br>
(configuration) that never sends IPv6 address records to an IPv4-only <br>
Squid. Configure each Squid to use the right resolver (see dns_nameservers).<br>
<br>
* Disable IPv6 support in IPv4-only Squid at ./configure time. This does <br>
not help with the IPv6-only Squid and has other negative side effects. I <br>
do not recommend this option.<br>
<br>
<br>
 > Like maybe we disable eyeballs or preserving it while add an option<br>
 > like DNS A records or DNS AAAA records .<br>
<br>
It would be possible to enhance Squid by adding a configuration option <br>
that disables (certain) A or AAAA queries, but proper modifications are <br>
not trivial and nobody has done them yet: <br>
<a href="https://wiki.squid-cache.org/SquidFaq/AboutSquid#How_to_add_a_new_Squid_feature.2C_enhance.2C_of_fix_something.3F">https://wiki.squid-cache.org/SquidFaq/AboutSquid#How_to_add_a_new_Squid_feature.2C_enhance.2C_of_fix_something.3F</a><br>
<br>
<br>
Cheers,<br>
<br>
Alex.<o:p></o:p></span></p>
</div>
</div>
</body>
</html>