Re: [squid-users] How not to cache local servers

From: Donovan Baarda <abo@dont-contact.us>
Date: Tue, 6 Aug 2002 23:06:11 +1000

On Tue, Aug 06, 2002 at 08:21:30AM +0200, Andreas Moroder wrote:
> Hello Donovan,
>
> I tried as you told me to insert the following statements:
>
> acl localsites dstdomain intranet ( where intranet is a server and not a network)
>
> and
>
> always_direct allow localsites
>
> Now I get another error:
>
> Der DNS-Server gab:
> Name Error: The domain name does not exist.
>
> If I try nslookup intranet exists, also if I trie with ping.
> What\'s strange is that the error is that the domain does not exist, but intranet
> is a host.
>
> In cache.log there are the following lines
>
> 2002/08/06 08:02:15| Adding nameserver 10.53.5.8 from /etc/resolv.conf
> 2002/08/06 08:02:15| Adding nameserver 10.53.5.9 from /etc/resolv.conf
>
> And this machines ARE my nameservers.
>
> Thank you for you help

I'm not entirely sure when you get that error... at startup, or when trying
to access a url?

I'm not sure if squid is doing acl lookups before or after append_domain...
try puting the fully qualified domain name instead of just the hostname.

The other alternative is to use a dstdom_regex acl, which lets you use a
regular expression...

-- 
----------------------------------------------------------------------
ABO: finger abo@minkirri.apana.org.au for more info, including pgp key
----------------------------------------------------------------------
Received on Tue Aug 06 2002 - 07:06:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:31 MST