The DNS Census 2013 is an attempt to provide a public dataset of registered domains and DNS records.
The torrent is about 15 GB (uncompressed: 157 GB).
I am pretty sure it contains domain names and IPs, but I am not 100% sure as I have not downloaded it to check. Please let us know, thanks!
You can extract TLD from domain name.