Re: Occasional spurious ERR_DNS FAIL?

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 19 Jun 97 11:30:05 -0700

JLarmour@origin-at.co.uk writes:

>Occasionally (on order of once a day for my relatively lightly used squid)
>I notice DNS failures in cache.log for sites that exist. The access.log
>contains the following for the entry:
>
>866650633.054 2181 172.16.204.115 ERR_DNS_FAIL/400 1150 GET
>http://www.yahoo.co.uk/headlines/970618/news/866647929-8666479291.html
> - NONE/- -
>
>A refresh brings up the page perfectly fine after the error screen.
>Obviously being so rare, debugging is difficult.

You could add these couple of lines, then an ERR_DNS_FAIL occurs,
the dnsserver error message will be logged to cache.log.

Index: src/errorpage.c
===================================================================
RCS file: /surf1/CVS/squid/src/errorpage.c,v
retrieving revision 1.53.2.3
diff -w -u -r1.53.2.3 errorpage.c
--- errorpage.c 1997/06/13 18:47:59 1.53.2.3
+++ errorpage.c 1997/06/19 18:26:10
@@ -165,6 +165,8 @@
        fatal_dump("squid_error_entry: type out of range.");
     error_index = (int) (type - ERR_MIN);
     debug(4, 1, "%s: %s\n", ErrorData[error_index].tag, entry->url);
+ if (type == ERR_DNS_FAIL)
+ debug(4,1,"dnsserver message: %s\n", msg);
     sprintf(tmp_error_buf, SQUID_ERROR_MSG_P1,
        entry->url,
        entry->url,

Duane W.
Received on Thu Jun 19 1997 - 11:39:50 MDT

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