I wonder if it might not be an idea to attempt a reverse DNS lookup (PTR) and if it works, display the DNS name as well as the IP address.