[PATCH] bind-8.3.3 "unrelated additional info" query logging

dean gaudet dgaudet-list-bind9-workers at arctic.org
Sat Jul 20 17:48:22 UTC 2002


i'm curious what queries are resulting in "unrelated additional info"
messages in my logs, so i enhanced the logging.

oh hmm i'm not sure if you require K&R C, you may not want the string
concatenation in there.

thanks
-dean

--- bind-8.3.3/src/bin/named/ns_resp.c.dglog	Wed Jun 26 20:09:19 2002
+++ bind-8.3.3/src/bin/named/ns_resp.c	Sat Jul 20 10:25:47 2002
@@ -1088,9 +1088,13 @@
 					}
 					if (!related_additional(name)) {
 						ns_info(ns_log_resp_checks,
-			     "unrelated additional info '%s' type %s from %s",
+			     "unrelated additional info '%s' type %s from %s"
+			     " for query \"%s %s %s\"",
 							 name, p_type(type),
-							 sin_ntoa(from));
+							 sin_ntoa(from),
+							 *(qp->q_name) ? qp->q_name : ".",
+							 p_class(qp->q_class),
+							 p_type(qp->q_type));
 						db_detach(&dp);
 						validanswer = 0;
 						continue;



More information about the bind-workers mailing list