Re: [squid-users] cache_peer and DNS

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 15 Mar 2010 15:32:36 +1300

On Sun, 14 Mar 2010 14:34:36 -1000, Jean-Denis Girard wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I've used cache_peer without troubles for some time. Recently, I was
> asked to add 2 hosts (site.dom1.com and site.dom2.com) through a
> specific cache_peer, and it fails with DNS error: "Name Error: The
> domain name does not exist.". The peers have no DNS resolution on the
> squid server, only on the cache_peer server.
>
> I have tried first:
> cache_peer peer.dom.com parent 80 0 default no-query
> cache_peer_domain peer.dom.com site.dom1.fr site.dom2.fr
>
> Then:
> cache_peer_domain peer.dom.com .dom1.fr .dom2.fr
>
> Then:
> acl xxx dst site.dom1.com site.dom2.com

"dst" Requires DNS lookup to find the IP address of the ACL listed domains
and again to match that against the IP address of the requested domain
name.

Use "dstdomain" with peering when you know the domain names.

Amos
Received on Mon Mar 15 2010 - 02:32:41 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 15 2010 - 12:00:04 MDT