iprange provides a new datatype for Postgresql that handled ranges of IPv4 addresses efficiently. It is suitable for efficiently finding which of a large list of address ranges intersects with a given address or address range.
The Indexable IPv4 range / CIDR typeproject is a PostgreSQL Community project that is a part of the pgFoundry.
The pgFoundry page for the project is at http://pgfoundry.org/projects/iprange, where you can find downloads, documentation, bug reports, mailing lists, and a whole lot more.