You might also be interested in the PostgreSQL 'ip4r' data type, which allows
fast indexes on range inclusion, overlaps, and the like. It works well.
http://pgfoundry.org/docman/view.php/179/117/README.txt
http://pgfoundry.org/projects/ip4r/
-- Steve Huwig
-Original Message-
Something we university library folks often need to do, even though it's
kind of a ridiculous design.
I wrote a ruby convenience gem for it that some may find useful,
basically just a convenience method around the ruby IPAddr stdlib, which
does the heavy lifting.