Increase timeout for hostname check because rDNS servers are slow
This commit is contained in:
parent
9174e5abcc
commit
c01bc1c784
|
@ -14,7 +14,7 @@ function gethost($ip)
|
|||
{
|
||||
$ires = array();
|
||||
|
||||
$host = `host -s -W 1 $ip`;
|
||||
$host = `host -s -W 5 $ip`;
|
||||
$host = ($host ? end( explode(' ', trim(trim($host), '.'))) : $ip);
|
||||
$ires = array();
|
||||
if(in_array($host, Array('reached', 'record', '3(NXDOMAIN)')))
|
||||
|
@ -31,4 +31,4 @@ function gethost($ip)
|
|||
}
|
||||
|
||||
return $ires;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue