rbldns-exclude patch
This is a simple patch for rbldns written by Dan Bernstein. This patch allows you to exclude ranges from a larger listed range.
Example datafile:
10.0.0.0/8
!10.32.2.0/24
10.32.2.100
:127.0.0.2:you are blacklisted
Every ip in the 10.0.0.0/8 range will return 127.0.0.2 except if this range is in the 10.32.2.0/24. 10.32.2.100 will override the 10.32.2.0/24 exception and still return 127.0.0.2.