Index: branches/htmlform/cgi-bin/extras/db2rwhois.pl
===================================================================
--- branches/htmlform/cgi-bin/extras/db2rwhois.pl	(revision 446)
+++ branches/htmlform/cgi-bin/extras/db2rwhois.pl	(revision 468)
@@ -74,5 +74,5 @@
 	"not (cidr <<= '10.0.0.0/8') and ".
 	"not (type = 'wr') and ".
-	"masklen(cidr) <=30 and ".
+	"((masklen(cidr) <=30 and family(cidr)=4) or (masklen(cidr) <=56 and family(cidr)=6)) and ".
 	"cidr <<= ?");
 
