disabled AXFR settings
This commit is contained in:
@@ -114,31 +114,31 @@ class bind extends DnsBase
|
|||||||
$bindconf_file .= ' type master;' . "\n";
|
$bindconf_file .= ' type master;' . "\n";
|
||||||
$bindconf_file .= ' file "' . makeCorrectFile(Settings::Get('system.bindconf_directory') . '/' . $domain['zonefile']) . '";' . "\n";
|
$bindconf_file .= ' file "' . makeCorrectFile(Settings::Get('system.bindconf_directory') . '/' . $domain['zonefile']) . '";' . "\n";
|
||||||
$bindconf_file .= ' allow-query { any; };' . "\n";
|
$bindconf_file .= ' allow-query { any; };' . "\n";
|
||||||
|
# 2016-12-15 disabled now
|
||||||
if (count($this->_ns) > 0 || count($this->_axfr) > 0) {
|
#if (count($this->_ns) > 0 || count($this->_axfr) > 0) {
|
||||||
// open allow-transfer
|
# // open allow-transfer
|
||||||
$bindconf_file .= ' allow-transfer {' . "\n";
|
# $bindconf_file .= ' allow-transfer {' . "\n";
|
||||||
// put nameservers in allow-transfer
|
# // put nameservers in allow-transfer
|
||||||
if (count($this->_ns) > 0) {
|
# if (count($this->_ns) > 0) {
|
||||||
foreach ($this->_ns as $ns) {
|
# foreach ($this->_ns as $ns) {
|
||||||
foreach ($ns["ips"] as $ip) {
|
# foreach ($ns["ips"] as $ip) {
|
||||||
$bindconf_file .= ' ' . $ip . ";\n";
|
# $bindconf_file .= ' ' . $ip . ";\n";
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
// AXFR server #100
|
# // AXFR server #100
|
||||||
if (count($this->_axfr) > 0) {
|
# if (count($this->_axfr) > 0) {
|
||||||
foreach ($this->_axfr as $axfrserver) {
|
# foreach ($this->_axfr as $axfrserver) {
|
||||||
if (validate_ip($axfrserver, true) !== false) {
|
# if (validate_ip($axfrserver, true) !== false) {
|
||||||
$bindconf_file .= ' ' . $axfrserver . ';' . "\n";
|
# $bindconf_file .= ' ' . $axfrserver . ';' . "\n";
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
// close allow-transfer
|
# // close allow-transfer
|
||||||
$bindconf_file .= ' };' . "\n";
|
# $bindconf_file .= ' };' . "\n";
|
||||||
}
|
#}
|
||||||
$bindconf_file .= '};' . "\n";
|
#$bindconf_file .= '};' . "\n";
|
||||||
$bindconf_file .= "\n";
|
#$bindconf_file .= "\n";
|
||||||
|
|
||||||
return $bindconf_file;
|
return $bindconf_file;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user