src/Koldy/Request.php
public static function host(): ?string
    {
        $ip = self::ip();

        if (isset(static::$hosts[$ip])) {
            return static::$hosts[$ip];
        }

        $host = gethostbyaddr($ip);
        static::$hosts[$ip] = ($host === '') ? null : $host;
        return static::$hosts[$ip];
    }
public static function host(): ?string
    {
        $ip = self::ip();

        if (isset(static::$hosts[$ip])) {
            return static::$hosts[$ip];
        }

        $host = gethostbyaddr($ip);
        static::$hosts[$ip] = ($host === '') ? null : $host;
        return static::$hosts[$ip];
    }
public static function host ( ) : ? string { $ ip = self :: ip ( ) ; if ( isset ( static :: $ hosts [ $ ip ] ) ) { return static :: $ hosts [ $ ip ] ; } $ host = gethostbyaddr ( $ ip ) ; static :: $ hosts [ $ ip ] = ( $ host === '' ) ? null : $ host ; return static :: $ hosts [ $ ip ] ; }
Get the host name of remote user. This will use gethostbyaddr function or its "cached" version

@return string|null
@throws Exception
@link http://php.net/manual/en/function.gethostbyaddr.php
Get the host name of remote user . This will use gethostbyaddr function or its cached version