added check for invalid responses from gethostbynamel
fixed indent
This commit is contained in:
@@ -36,6 +36,8 @@ class bind {
|
||||
// DNS servers might be multi homed; allow transfer from all ip
|
||||
// addresses of the DNS server
|
||||
$nameserver_ips = gethostbynamel(trim($nameserver));
|
||||
// ignore invalid responses
|
||||
if (is_array($nameserver_ips)) {
|
||||
if (substr($nameserver, -1, 1) != '.') {
|
||||
$nameserver.= '.';
|
||||
}
|
||||
@@ -45,6 +47,7 @@ class bind {
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Settings::Get('system.mxservers') != '') {
|
||||
$mxservers = explode(',', Settings::Get('system.mxservers'));
|
||||
|
||||
Reference in New Issue
Block a user