[squid-users] Reverse DNS Lookup for client IPs

Stefan Hölzle stefan at hoelzle.work
Tue Feb 16 11:39:33 UTC 2016


I had to try overwriting the directives in the squid.conf since it was
the quickest and most obvious solution to me.
I can assure you, it works.

On 15.02.2016 10:59, Amos Jeffries wrote:
> On 15/02/2016 10:51 p.m., Stefan Hölzle wrote:
>> For a quick fix, I defined the two directives in my squid.conf as follows:Hello,
>>
>> I'm using the following request to retrieve the current traffic usage of our servers: http://developer.leaseweb.com/api-docs/#retrieve-datatraffic-usage
>>
>> The responsed values are refreshed once per day.
>> The exact time varies for each server between approximately 0 am and 7 am (UTC).
>>
>> Could you add the last refresh date (date + time + timezone) to the API's response ?
>> url_rewrite_extras "%>a %un %>rm myip=%la myport=%lp"
>> store_id_extras "%>a %un %>rm myip=%la myport=%lp"
>>
>> Basically, I removed the ">A" part, which is responsible for the PTR
>> lookup of client ips.
>> Afterwards, squid does no more PTR lookups of client ips :)
> That surprises me. The default values are parsed before squid.conf and
> get to set the log_fqdn flag internally before your manual ones.
>
> Amos
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list