src/IP.php
public function getHostname()
    {
        $stringIp = $this->toString();

        $host = strtolower(@gethostbyaddr($stringIp));

        if ($host === '' || $host === $stringIp) {
            return null;
        }

        return $host;
    }
public function getHostname()
    {
        $stringIp = $this->toString();

        $host = strtolower(@gethostbyaddr($stringIp));

        if ($host === '' || $host === $stringIp) {
            return null;
        }

        return $host;
    }
public function getHostname ( ) { $ stringIp = $ this -> toString ( ) ; $ host = strtolower ( @ gethostbyaddr ( $ stringIp ) ) ; if ( $ host === '' || $ host === $ stringIp ) { return null ; } return $ host ; }
Tries to return the hostname associated to the IP.

@return string|null The hostname or null if the hostname can't be resolved.
Tries to return the hostname associated to the IP .