IP address to host name

gets the Internet host name corresponding to a given IP address

<?php
$ip = gethostbyaddr($REMOTE_ADDR);
echo $ip;
?>