Skip to content

Commit 2629157

Browse files
committed
2026-01-14
1 parent 1b6dd9c commit 2629157

13 files changed

Lines changed: 275 additions & 22 deletions

File tree

squid-users/2026-January.txt

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,3 +1942,92 @@ Size: 137279 bytes
19421942
Desc: not available
19431943
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20260112/ff7dd0c6/attachment-0001.png>
19441944

1945+
From rousskov at measurement-factory.com Tue Jan 13 20:59:05 2026
1946+
From: rousskov at measurement-factory.com (Alex Rousskov)
1947+
Date: Tue, 13 Jan 2026 15:59:05 -0500
1948+
Subject: [squid-users] peer-select.cc, cache_peer and dns queries
1949+
In-Reply-To: <7663FB89-0DEA-4AAA-A720-222C4D19ABF4@139.com>
1950+
References: <C6552CCA-44F1-4FBE-B4AE-2CB20C955301@139.com>
1951+
<ec0ae64f-350c-4661-b27f-821436f66036@measurement-factory.com>
1952+
<2b4169659e66d98-00001.Richmail.00020836837433808968@139.com>
1953+
<6e1f74f3-ca70-4cd5-8b12-40f5ab1c9cac@measurement-factory.com>
1954+
<7663FB89-0DEA-4AAA-A720-222C4D19ABF4@139.com>
1955+
Message-ID: <bec610c5-9f44-4547-a99b-dfbc38294699@measurement-factory.com>
1956+
1957+
On 2026-01-13 01:51, archer wrote:
1958+
1959+
> Please check full log at ...
1960+
1961+
Thank you for sharing that log.
1962+
1963+
1964+
> In this attempt, I tried to visit google.
1965+
1966+
The first corresponding DNS lookup is triggered by Squid NetDB feature.
1967+
To disable that feature, ./configure Squid with `--disable-icmp`.
1968+
1969+
AFAICT, there is no squid.conf option that would disable those lookups
1970+
in Squids built with `--enable-icmp` (which is also the default).
1971+
1972+
1973+
HTH,
1974+
1975+
Alex.
1976+
1977+
1978+
>> On Jan 13, 2026, at 9:48 AM, Alex Rousskov wrote:
1979+
>>
1980+
>> On 2026-01-12 20:22, Archer wrote:
1981+
>>
1982+
>>> I picked up this part of log as? evidence that Squid does conduct DNS
1983+
>>> lookups AFTER a peer connection is selected( log ommited). In the
1984+
>>> configuration, a cache peer (parent proxy) for specified domains
1985+
>>> presents.
1986+
>>> And the relative part of config is already provided in some other
1987+
>>> thread of this post. TY
1988+
>>
1989+
>>
1990+
>> FWIW, if I have access to a full debugging log collected while
1991+
>> reproducing the problem, I may be able to tell you what causes DNS
1992+
>> lookups in your specific environment. I discourage Squid admins from
1993+
>> studying debugging logs because they are meant for Squid developers
1994+
>> and can be very misleading.
1995+
>>
1996+
>> https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction <https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction>
1997+
>>
1998+
>> Without looking at the logs, and without investing a lot of time in
1999+
>> trying to reproduce the problem locally based on the partial
2000+
>> information you have shared, I can only offer guesses, and I have done
2001+
>> that already.
2002+
>>
2003+
>> Alex.
2004+
>>
2005+
>>
2006+
>>> On 2026-01-09 17:19, archer wrote:
2007+
>>>> cache_peer a.b.c.d parent ... name=NodeNG
2008+
>>>> always_direct extranet_whitelist
2009+
>>>> never_direct extranet
2010+
>>>> I observed peer-select.cc still conducting DNS lookups on an
2011+
>>>> extranet domain , which is a purely domain-based ACL. e.g.
2012+
>>>>
2013+
>>>> peer_select.cc(833) selectSomeParent: CONNECT www.example.com
2014+
>>>> ...
2015+
>>>> peer_select.cc(460) resolveSelected: Find IP destination for:
2016+
>>>> www.example.com:443 via a.b.c.d
2017+
>>> The above debugging log snippet is unrelated to ACLs checking/code.
2018+
>>> Squid says that it needs to resolve a.b.c.d to connect to a peer at
2019+
>>> that a.b.c.d address. If a.b.c.d is alerady an IP address, then that
2020+
>>> resolution is going to be a no-op -- no actual DNS queries will be sent.
2021+
>>> I do not know what triggers other DNS queries in your case. If I have
2022+
>>> to guess, I would guess that peer selection algorithm finds multiple
2023+
>>> ways to satisfy that CONNECT-to-X request and some of those ways
2024+
>>> include a direct connection to X, triggering X resolution.
2025+
>>>> So, what can I do to have extranet DNS handled by the parent proxy,
2026+
>>>> while leaving the remainder to the child proxy, with a domain list ?
2027+
>>>> Squid Cache: Version 5.7
2028+
>>> FWIW, the above version is not supported by the Squid Project.
2029+
>>> Alex.
2030+
>>
2031+
>
2032+
2033+

squid-users/2026-January/027740.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
</style>
1414
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
15-
<LINK REL="Previous" HREF="027756.html">
15+
<LINK REL="Previous" HREF="027759.html">
1616
<LINK REL="Next" HREF="027743.html">
1717
</HEAD>
1818
<BODY BGCOLOR="#ffffff">
@@ -23,7 +23,7 @@ <H1>[squid-users] Squid integration with Netskope forward to proxy</H1>
2323
</A><BR>
2424
<I>Sun Jan 11 14:58:12 UTC 2026</I>
2525
<P><UL>
26-
<LI>Previous message (by thread): <A HREF="027756.html">[squid-users] peer-select.cc, cache_peer and dns queries
26+
<LI>Previous message (by thread): <A HREF="027759.html">[squid-users] peer-select.cc, cache_peer and dns queries
2727
</A></li>
2828
<LI>Next message (by thread): <A HREF="027743.html">[squid-users] Squid integration with Netskope forward to proxy
2929
</A></li>
@@ -73,11 +73,12 @@ <H1>[squid-users] Squid integration with Netskope forward to proxy</H1>
7373

7474

7575

76+
7677
<!--endarticle-->
7778
<HR>
7879
<P><UL>
7980
<!--threads-->
80-
<LI>Previous message (by thread): <A HREF="027756.html">[squid-users] peer-select.cc, cache_peer and dns queries
81+
<LI>Previous message (by thread): <A HREF="027759.html">[squid-users] peer-select.cc, cache_peer and dns queries
8182
</A></li>
8283
<LI>Next message (by thread): <A HREF="027743.html">[squid-users] Squid integration with Netskope forward to proxy
8384
</A></li>

squid-users/2026-January/027741.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ <H1>[squid-users] Can I safely increase MAX_URL to 12KByte?</H1>
7373

7474

7575

76+
7677
<!--endarticle-->
7778
<HR>
7879
<P><UL>

squid-users/2026-January/027743.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ <H1>[squid-users] Squid integration with Netskope forward to proxy</H1>
7575

7676

7777

78+
7879
<!--endarticle-->
7980
<HR>
8081
<P><UL>

squid-users/2026-January/027744.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ <H1>[squid-users] Can I safely increase MAX_URL to 12KByte?</H1>
7575

7676

7777

78+
7879
<!--endarticle-->
7980
<HR>
8081
<P><UL>

squid-users/2026-January/027746.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ <H1>[squid-users] Squid integration with Netskope forward to proxy</H1>
9292

9393

9494

95+
9596
<!--endarticle-->
9697
<HR>
9798
<P><UL>

squid-users/2026-January/027756.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</style>
1414
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
1515
<LINK REL="Previous" HREF="027755.html">
16-
<LINK REL="Next" HREF="027740.html">
16+
<LINK REL="Next" HREF="027759.html">
1717
</HEAD>
1818
<BODY BGCOLOR="#ffffff">
1919
<H1>[squid-users] peer-select.cc, cache_peer and dns queries</H1>
@@ -25,7 +25,7 @@ <H1>[squid-users] peer-select.cc, cache_peer and dns queries</H1>
2525
<P><UL>
2626
<LI>Previous message (by thread): <A HREF="027755.html">[squid-users] peer-select.cc, cache_peer and dns queries
2727
</A></li>
28-
<LI>Next message (by thread): <A HREF="027740.html">[squid-users] Squid integration with Netskope forward to proxy
28+
<LI>Next message (by thread): <A HREF="027759.html">[squid-users] peer-select.cc, cache_peer and dns queries
2929
</A></li>
3030
<LI> <B>Messages sorted by:</B>
3131
<a href="date.html#27756">[ date ]</a>
@@ -84,13 +84,14 @@ <H1>[squid-users] peer-select.cc, cache_peer and dns queries</H1>
8484
</PRE>
8585

8686

87+
8788
<!--endarticle-->
8889
<HR>
8990
<P><UL>
9091
<!--threads-->
9192
<LI>Previous message (by thread): <A HREF="027755.html">[squid-users] peer-select.cc, cache_peer and dns queries
9293
</A></li>
93-
<LI>Next message (by thread): <A HREF="027740.html">[squid-users] Squid integration with Netskope forward to proxy
94+
<LI>Next message (by thread): <A HREF="027759.html">[squid-users] peer-select.cc, cache_peer and dns queries
9495
</A></li>
9596
<LI> <B>Messages sorted by:</B>
9697
<a href="date.html#27756">[ date ]</a>

squid-users/2026-January/027757.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ <H1>[squid-users] Squid integration with Netskope forward to proxy</H1>
9797
</PRE>
9898

9999

100+
100101
<!--endarticle-->
101102
<HR>
102103
<P><UL>
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2+
<HTML>
3+
<HEAD>
4+
<TITLE> [squid-users] peer-select.cc, cache_peer and dns queries
5+
</TITLE>
6+
<LINK REL="Index" HREF="index.html" >
7+
<LINK REL="made" HREF="mailto:squid-users%40lists.squid-cache.org?Subject=Re%3A%20%5Bsquid-users%5D%20peer-select.cc%2C%20cache_peer%20and%20dns%20queries&In-Reply-To=%3Cbec610c5-9f44-4547-a99b-dfbc38294699%40measurement-factory.com%3E">
8+
<META NAME="robots" CONTENT="index,nofollow">
9+
<style type="text/css">
10+
pre {
11+
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
12+
}
13+
</style>
14+
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
15+
<LINK REL="Previous" HREF="027756.html">
16+
<LINK REL="Next" HREF="027740.html">
17+
</HEAD>
18+
<BODY BGCOLOR="#ffffff">
19+
<H1>[squid-users] peer-select.cc, cache_peer and dns queries</H1>
20+
<B>Alex Rousskov</B>
21+
<A HREF="mailto:squid-users%40lists.squid-cache.org?Subject=Re%3A%20%5Bsquid-users%5D%20peer-select.cc%2C%20cache_peer%20and%20dns%20queries&In-Reply-To=%3Cbec610c5-9f44-4547-a99b-dfbc38294699%40measurement-factory.com%3E"
22+
TITLE="[squid-users] peer-select.cc, cache_peer and dns queries">rousskov at measurement-factory.com
23+
</A><BR>
24+
<I>Tue Jan 13 20:59:05 UTC 2026</I>
25+
<P><UL>
26+
<LI>Previous message (by thread): <A HREF="027756.html">[squid-users] peer-select.cc, cache_peer and dns queries
27+
</A></li>
28+
<LI>Next message (by thread): <A HREF="027740.html">[squid-users] Squid integration with Netskope forward to proxy
29+
</A></li>
30+
<LI> <B>Messages sorted by:</B>
31+
<a href="date.html#27759">[ date ]</a>
32+
<a href="thread.html#27759">[ thread ]</a>
33+
<a href="subject.html#27759">[ subject ]</a>
34+
<a href="author.html#27759">[ author ]</a>
35+
</LI>
36+
</UL>
37+
<HR>
38+
<!--beginarticle-->
39+
<PRE>On 2026-01-13 01:51, archer wrote:
40+
41+
&gt;<i> Please check full log at ...
42+
</I>
43+
Thank you for sharing that log.
44+
45+
46+
&gt;<i> In this attempt, I tried to visit google.
47+
</I>
48+
The first corresponding DNS lookup is triggered by Squid NetDB feature.
49+
To disable that feature, ./configure Squid with `--disable-icmp`.
50+
51+
AFAICT, there is no squid.conf option that would disable those lookups
52+
in Squids built with `--enable-icmp` (which is also the default).
53+
54+
55+
HTH,
56+
57+
Alex.
58+
59+
60+
&gt;&gt;<i> On Jan 13, 2026, at 9:48 AM, Alex Rousskov wrote:
61+
</I>&gt;&gt;<i>
62+
</I>&gt;&gt;<i> On 2026-01-12 20:22, Archer wrote:
63+
</I>&gt;&gt;<i>
64+
</I>&gt;&gt;&gt;<i> I picked up this part of log as&#160; evidence that Squid does conduct DNS
65+
</I>&gt;&gt;&gt;<i> lookups AFTER a peer connection is selected( log ommited). In the
66+
</I>&gt;&gt;&gt;<i> configuration, a cache peer (parent proxy) for specified domains
67+
</I>&gt;&gt;&gt;<i> presents.
68+
</I>&gt;&gt;&gt;<i> And the relative part of config is already provided in some other
69+
</I>&gt;&gt;&gt;<i> thread of this post. TY
70+
</I>&gt;&gt;<i>
71+
</I>&gt;&gt;<i>
72+
</I>&gt;&gt;<i> FWIW, if I have access to a full debugging log collected while
73+
</I>&gt;&gt;<i> reproducing the problem, I may be able to tell you what causes DNS
74+
</I>&gt;&gt;<i> lookups in your specific environment. I discourage Squid admins from
75+
</I>&gt;&gt;<i> studying debugging logs because they are meant for Squid developers
76+
</I>&gt;&gt;<i> and can be very misleading.
77+
</I>&gt;&gt;<i>
78+
</I>&gt;&gt;<i> <A HREF="https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction">https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction</A> &lt;<A HREF="https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction">https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction</A>&gt;
79+
</I>&gt;&gt;<i>
80+
</I>&gt;&gt;<i> Without looking at the logs, and without investing a lot of time in
81+
</I>&gt;&gt;<i> trying to reproduce the problem locally based on the partial
82+
</I>&gt;&gt;<i> information you have shared, I can only offer guesses, and I have done
83+
</I>&gt;&gt;<i> that already.
84+
</I>&gt;&gt;<i>
85+
</I>&gt;&gt;<i> Alex.
86+
</I>&gt;&gt;<i>
87+
</I>&gt;&gt;<i>
88+
</I>&gt;&gt;&gt;<i> On 2026-01-09 17:19, archer wrote:
89+
</I>&gt;&gt;&gt;&gt;<i> cache_peer a.b.c.d parent ... name=NodeNG
90+
</I>&gt;&gt;&gt;&gt;<i> always_direct extranet_whitelist
91+
</I>&gt;&gt;&gt;&gt;<i> never_direct extranet
92+
</I>&gt;&gt;&gt;&gt;<i> I observed peer-select.cc still conducting DNS lookups on an
93+
</I>&gt;&gt;&gt;&gt;<i> extranet domain , which is a purely domain-based ACL. e.g.
94+
</I>&gt;&gt;&gt;&gt;<i>
95+
</I>&gt;&gt;&gt;&gt;<i> peer_select.cc(833) selectSomeParent: CONNECT www.example.com
96+
</I>&gt;&gt;&gt;&gt;<i> ...
97+
</I>&gt;&gt;&gt;&gt;<i> peer_select.cc(460) resolveSelected: Find IP destination for:
98+
</I>&gt;&gt;&gt;&gt;<i> www.example.com:443 via a.b.c.d
99+
</I>&gt;&gt;&gt;<i> The above debugging log snippet is unrelated to ACLs checking/code.
100+
</I>&gt;&gt;&gt;<i> Squid says that it needs to resolve a.b.c.d to connect to a peer at
101+
</I>&gt;&gt;&gt;<i> that a.b.c.d address. If a.b.c.d is alerady an IP address, then that
102+
</I>&gt;&gt;&gt;<i> resolution is going to be a no-op -- no actual DNS queries will be sent.
103+
</I>&gt;&gt;&gt;<i> I do not know what triggers other DNS queries in your case. If I have
104+
</I>&gt;&gt;&gt;<i> to guess, I would guess that peer selection algorithm finds multiple
105+
</I>&gt;&gt;&gt;<i> ways to satisfy that CONNECT-to-X request and some of those ways
106+
</I>&gt;&gt;&gt;<i> include a direct connection to X, triggering X resolution.
107+
</I>&gt;&gt;&gt;&gt;<i> So, what can I do to have extranet DNS handled by the parent proxy,
108+
</I>&gt;&gt;&gt;&gt;<i> while leaving the remainder to the child proxy, with a domain list ?
109+
</I>&gt;&gt;&gt;&gt;<i> Squid Cache: Version 5.7
110+
</I>&gt;&gt;&gt;<i> FWIW, the above version is not supported by the Squid Project.
111+
</I>&gt;&gt;&gt;<i> Alex.
112+
</I>&gt;&gt;<i>
113+
</I>&gt;<i>
114+
</I>
115+
</PRE>
116+
117+
<!--endarticle-->
118+
<HR>
119+
<P><UL>
120+
<!--threads-->
121+
<LI>Previous message (by thread): <A HREF="027756.html">[squid-users] peer-select.cc, cache_peer and dns queries
122+
</A></li>
123+
<LI>Next message (by thread): <A HREF="027740.html">[squid-users] Squid integration with Netskope forward to proxy
124+
</A></li>
125+
<LI> <B>Messages sorted by:</B>
126+
<a href="date.html#27759">[ date ]</a>
127+
<a href="thread.html#27759">[ thread ]</a>
128+
<a href="subject.html#27759">[ subject ]</a>
129+
<a href="author.html#27759">[ author ]</a>
130+
</LI>
131+
</UL>
132+
133+
<hr>
134+
<a href="https://lists.squid-cache.org/listinfo/squid-users">More information about the squid-users
135+
mailing list</a><br>
136+
</body></html>

squid-users/2026-January/author.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ <h1>January 2026 Archives by author</h1>
1919
</a></b></li>
2020
</ul>
2121
<p><b>Starting:</b> <i>Sun Jan 4 01:35:40 UTC 2026</i><br>
22-
<b>Ending:</b> <i>Tue Jan 13 12:45:30 UTC 2026</i><br>
23-
<b>Messages:</b> 26<p>
22+
<b>Ending:</b> <i>Tue Jan 13 20:59:05 UTC 2026</i><br>
23+
<b>Messages:</b> 27<p>
2424
<ul>
2525

2626
<LI><A HREF="027754.html">[squid-users] peer-select.cc, cache_peer and dns queries
@@ -98,6 +98,11 @@ <h1>January 2026 Archives by author</h1>
9898
<I>Alex Rousskov
9999
</I>
100100

101+
<LI><A HREF="027759.html">[squid-users] peer-select.cc, cache_peer and dns queries
102+
</A><A NAME="27759">&nbsp;</A>
103+
<I>Alex Rousskov
104+
</I>
105+
101106
<LI><A HREF="027734.html">[squid-users] Running squid in a network namespace
102107
</A><A NAME="27734">&nbsp;</A>
103108
<I>Robert 'Bobby' Zenz
@@ -156,8 +161,8 @@ <h1>January 2026 Archives by author</h1>
156161
</ul>
157162
<p>
158163
<a name="end"><b>Last message date:</b></a>
159-
<i>Tue Jan 13 12:45:30 UTC 2026</i><br>
160-
<b>Archived on:</b> <i>Tue Jan 13 13:35:40 UTC 2026</i>
164+
<i>Tue Jan 13 20:59:05 UTC 2026</i><br>
165+
<b>Archived on:</b> <i>Tue Jan 13 20:59:08 UTC 2026</i>
161166
<p>
162167
<ul>
163168
<li> <b>Messages sorted by:</b>

0 commit comments

Comments
 (0)