|
|
@@ -394,6 +394,11 @@ function cwp7CheckSOA($domain) {
|
|
|
}
|
|
|
fclose($conn);
|
|
|
$responseArray = str_getcsv($response, "\n");
|
|
|
+ foreach($responseArray as $row) {
|
|
|
+ if(str_starts_with($row, 'whois')) {
|
|
|
+ $whoisServer = array_slice(explode(':', $domain), -1, 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
logModuleCall(
|
|
|
'cwp7',
|
|
|
@@ -409,7 +414,7 @@ function cwp7CheckSOA($domain) {
|
|
|
__FUNCTION__,
|
|
|
$tld[0],
|
|
|
'debug2',
|
|
|
- $responseArray
|
|
|
+ $whoisServer
|
|
|
);
|
|
|
return 'none';
|
|
|
}
|