From c01bc1c7842c5750c4d4b652a8db788a3a65787e Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sat, 15 May 2021 19:52:27 +0200 Subject: [PATCH] Increase timeout for hostname check because rDNS servers are slow --- src/hostname.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hostname.php b/src/hostname.php index 7023dc2..30f4a21 100644 --- a/src/hostname.php +++ b/src/hostname.php @@ -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; -} \ No newline at end of file +}