Another patch that has nothing to do with the IRIX port, but
which seems useful, at least to me:

diff -ru src.orig/bin/named/ns_req.c src/bin/named/ns_req.c
--- src.orig/bin/named/ns_req.c	Thu Mar 26 16:21:03 1998
+++ src/bin/named/ns_req.c	Mon Nov 16 03:04:56 1998
@@ -507,9 +507,10 @@
 
 #ifdef QRYLOG
 	if (qrylog) {
-		ns_info(ns_log_queries, "XX /%s/%s/%s",
+		ns_info(ns_log_queries, "XX /%s/%s/%s/%s",
 			inet_ntoa(from.sin_addr), 
 			(dname[0] == '\0') ? "." : dname, 
+			p_class(class),
 			p_type(type));
 	}
 #endif /*QRYLOG*/
