|
@@ -388,17 +388,10 @@ function cwp7CheckSOA($domain) {
|
|
|
$tld = array_slice(explode('.', $domain), -1, 1);
|
|
$tld = array_slice(explode('.', $domain), -1, 1);
|
|
|
$conn = fsockopen ('whois.iana.org', 43, $errno, $errstr);
|
|
$conn = fsockopen ('whois.iana.org', 43, $errno, $errstr);
|
|
|
if($conn) {
|
|
if($conn) {
|
|
|
- fputs($conn, $tld . "\r\n");
|
|
|
|
|
|
|
+ fputs($conn, $tld[0] . "\r\n");
|
|
|
while(!feof($conn)) {
|
|
while(!feof($conn)) {
|
|
|
$output .= fgets($conn,128);
|
|
$output .= fgets($conn,128);
|
|
|
}
|
|
}
|
|
|
- logModuleCall(
|
|
|
|
|
- 'cwp7',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $tld,
|
|
|
|
|
- 'debug1',
|
|
|
|
|
- $output
|
|
|
|
|
- );
|
|
|
|
|
fclose($conn);
|
|
fclose($conn);
|
|
|
} else {
|
|
} else {
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
@@ -408,6 +401,14 @@ function cwp7CheckSOA($domain) {
|
|
|
'debug2',
|
|
'debug2',
|
|
|
$errstr
|
|
$errstr
|
|
|
);
|
|
);
|
|
|
|
|
+ return 'error';
|
|
|
}
|
|
}
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'cwp7',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ $tld[0],
|
|
|
|
|
+ 'debug2',
|
|
|
|
|
+ $output
|
|
|
|
|
+ );
|
|
|
return 'none';
|
|
return 'none';
|
|
|
}
|
|
}
|