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

function resolve_host($ip) {
    $host = chop(`/usr/bin/host $ip`);
    if (substr($host,-1,1) <> '.') {
        return 0;
    }
    return (end ( explode (' ', $host)));
}

Return current item: IPTables log analyzer