
https://metrics.torproject.org/exonerator.html
Very interesting tool, and it is from Tor Project itself. You pass an IP address and a date to see if the IP address hosted one or more Tor relays on that particular day.
If you want a historical database of IP addresses associated with Tor, request a custom database from us.