|
@ -1005,8 +1005,10 @@ |
|
|
|
|
|
|
|
|
foreach($config['dnsbl'] as &$blacklist) { |
|
|
foreach($config['dnsbl'] as &$blacklist) { |
|
|
$lookup = $ip . '.' . $blacklist; |
|
|
$lookup = $ip . '.' . $blacklist; |
|
|
if(gethostbyname($lookup) != $lookup) { |
|
|
$host = gethostbyname($lookup); |
|
|
|
|
|
if($host != $looku) { |
|
|
// On NXDOMAIN (meaning it's not in the blacklist), gethostbyname() returns the host unchanged. |
|
|
// On NXDOMAIN (meaning it's not in the blacklist), gethostbyname() returns the host unchanged. |
|
|
|
|
|
if(preg_match('/^127\.0\.0\./', $host) && $host != '127.0.0.10') |
|
|
error(sprintf($config['error']['dnsbl'], $blacklist)); |
|
|
error(sprintf($config['error']['dnsbl'], $blacklist)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|