no you will have to get the domain name when you get the ip.
Most people do not have static IP's there all running off DHCP so when they log off then log back on the net, there IP changes. So if you tryed pinging all the ips you wont get all the domain names....
But you will want to log the domain name and or IP at the same time not after the fact..
-sorry