I've used the free MaxMinds database for a while but since the last year I've been using iplist.cc. It supports IPv4, IPv6, shows if an IP is tor, spam, which ASN and a lot more.
It's also free and fast but with services like these I always wonder how long they manage to stay free.