Search squid archive

Re: Cannot select peer when request is IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/12/2013 11:45 a.m., Brett Lymn wrote:
> On Mon, Dec 02, 2013 at 11:53:40AM +0000, Stephen Borrill wrote:
>> On Sun, 1 Dec 2013, Amos Jeffries wrote:
>>> On 30/11/2013 5:03 a.m., Stephen Borrill wrote:
>>>> I've found a problem with selecting a parent cache if the request is an
>>>> IP address. Tested with various versions including 3.3.10. Example
>>>> config fragment is below:
>>>>
>>>> cache_peer 192.168.1.143 parent 3128 0 no-query no-digest default 
>>>> name=prox1
>>>> cache_peer 192.168.1.144 parent 3128 0 no-query no-digest name=prox2
>>>> never_direct allow all
>>>> acl domlist dstdomain -n .bbc.co.uk
>>>
>>> "-n" means do not use DNS when evaluating the dstdomain against a
>>> raw_IP. One guess what requesting http://123.234.123.234/ does?
>>
>> -n was added later in an attempt to get it working. The problem still 
>> occurs without -n.
>>
> 
> Could it be bug 3848?
> 

Its more likely the text string "123.234.123.234" does not match the
domain name pattern .*(bbc\.co\.uk)$  nor does it have a PTR reverse-DNS
record that resolves to any domain name that could match even if the -n
option was not there to prevent PTR lookup.

Amos





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux