itty bitty logging patch

dean gaudet dgaudet-list-bind-workers at arctic.org
Fri Dec 22 14:48:33 UTC 2000


i'd like to know who to sneer at when i get these errors in my logs. for
example:

Dec 22 06:43:17 twinlark named[10072]: Response from unexpected source ([152.163.159.242].53) for query "DAHA-02.NS.AOL.COM IN A"

-dean

--- src/bin/named/ns_resp.c.dglog	Tue Nov 28 22:56:04 2000
+++ src/bin/named/ns_resp.c	Fri Dec 22 06:02:47 2000
@@ -471,8 +471,10 @@
 			if (!haveComplained(ina_ulong(from.sin_addr),
 					    (u_long)"unexpected source")) {
 				ns_info(ns_log_default,
-					"Response from unexpected source (%s)",
-					sin_ntoa(from));
+					"Response from unexpected source (%s) for query \"%s %s %s\"",
+					sin_ntoa(from),
+                        		*(qp->q_name) ? qp->q_name : ".",
+					p_class(qp->q_class), p_type(qp->q_type));
 			}
 			/*
 			 * We don't know who this response came from so it




More information about the bind-workers mailing list