How can I resolve an IP address to a hostname using PHP?
You can use the gethostbyaddr() function.
$hostname = gethostbyaddr($ipAddress);