Location: PHPKode > projects > IPTables log analyzer > iptablelog/utils/resolver_native.php
<?

function resolve_host($ip) {
    $host = gethostbyaddr($ip);
    if ($host == $ip) {
        return 0;
    }
    return $host;
}

Return current item: IPTables log analyzer