Re: Connect every 7 hours

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 07 Mar 1999 00:49:53 +0100

volker hochstein wrote:

> Every seven hours a dial is performed without any forced action by a
> client.

Squid refreshes the IP addresses of it's peers every hour, and this may
well be the cause to these dials if this Squid is configured to use any
parent / sibling caches.

It may be possible to avoid this DNS lookup by either
* Configure peers using their IP address in squid.conf
or
* Add the peer addresses to /etc/hosts

A simple test to see if this is the cause is to restart Squid with the
-D option while off line. If Squid starts fine without triggering a dial
then the problem is elsewhere.

How my test environment is configured (also behind an automated dialup
line):
1. All peers are listed in /etc/hosts
2. The system is configured to use /etc/hosts prior to DNS queries.
3. The peers are configured like the following:
   cache_peer non-icp-cache.other.domain 80 0 no-query no-digest
no-netdb-exchange
   cache_peer squid.other.domain 3128 3130 no-digest no-netdb-exchange

---
Henrik Nordstrom
Spare time Squid hacker
Received on Sat Mar 06 1999 - 16:48:41 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:09 MST