Index: /trunk/DNSDB.pm
===================================================================
--- /trunk/DNSDB.pm	(revision 311)
+++ /trunk/DNSDB.pm	(revision 312)
@@ -827,4 +827,5 @@
       }
       # Split and reverse the order of the nibbles in the network/broadcast IPs
+      $prefix =~ s/0$// if $zone->masklen % 4 == 0;	# trim another 0 for nibble-aligned blocks first
       my @nbits = reverse split //, $prefix;
       my @bbits = reverse split //, $bc;
