Hi
My goal is to obtain the destination IP when sending an HTTP request for my
ICAP server so it would be able to decide the kind of adaptation required
based on it.
Looking at squid (5.0.4) code I discovered the following:
It seems that "everything" starts at ClientRequestContext.
I've noticed
As you have found. There is no destination IP at REQMOD time. Even if squid were to do a lookup it does not know the outcome of the routing decision in order to select which IP to send REQMOD. Especially if REQMOD is the source of that decision.A normal (forward) proxy has only a server host name (
Hey Moti,
It is a good assumption that the same caching dns server (not 8.8.8.8 or
1.1.1.1) that the client use will return the relevant destination ip for
the domain.
Its possible to do such a query in the icap service with low timeout(2-3)
seconds.
can this be good enough for your use case?
Eli
On 1/17/21 5:28 PM, Moti Berger wrote:
> I couldn't figure out a way to start the DNS resolving just before
> the startAdaptation starts as it requires all sorts of objects that seem
> to be unavailable there.
Please ask development questions on squid-dev:
http://www.squid-cache.org/Support/mailin