From 924731d54d62edf1aebae0c7ac5e378e02c0bcc5 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Thu, 15 Dec 2016 15:49:06 +0100 Subject: [PATCH] disabled AXFR settings --- scripts/jobs/cron_tasks.inc.dns.10.bind.php | 50 ++++++++++----------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/scripts/jobs/cron_tasks.inc.dns.10.bind.php b/scripts/jobs/cron_tasks.inc.dns.10.bind.php index c2416599..26401fee 100644 --- a/scripts/jobs/cron_tasks.inc.dns.10.bind.php +++ b/scripts/jobs/cron_tasks.inc.dns.10.bind.php @@ -114,31 +114,31 @@ class bind extends DnsBase $bindconf_file .= ' type master;' . "\n"; $bindconf_file .= ' file "' . makeCorrectFile(Settings::Get('system.bindconf_directory') . '/' . $domain['zonefile']) . '";' . "\n"; $bindconf_file .= ' allow-query { any; };' . "\n"; - - if (count($this->_ns) > 0 || count($this->_axfr) > 0) { - // open allow-transfer - $bindconf_file .= ' allow-transfer {' . "\n"; - // put nameservers in allow-transfer - if (count($this->_ns) > 0) { - foreach ($this->_ns as $ns) { - foreach ($ns["ips"] as $ip) { - $bindconf_file .= ' ' . $ip . ";\n"; - } - } - } - // AXFR server #100 - if (count($this->_axfr) > 0) { - foreach ($this->_axfr as $axfrserver) { - if (validate_ip($axfrserver, true) !== false) { - $bindconf_file .= ' ' . $axfrserver . ';' . "\n"; - } - } - } - // close allow-transfer - $bindconf_file .= ' };' . "\n"; - } - $bindconf_file .= '};' . "\n"; - $bindconf_file .= "\n"; + # 2016-12-15 disabled now + #if (count($this->_ns) > 0 || count($this->_axfr) > 0) { + # // open allow-transfer + # $bindconf_file .= ' allow-transfer {' . "\n"; + # // put nameservers in allow-transfer + # if (count($this->_ns) > 0) { + # foreach ($this->_ns as $ns) { + # foreach ($ns["ips"] as $ip) { + # $bindconf_file .= ' ' . $ip . ";\n"; + # } + # } + # } + # // AXFR server #100 + # if (count($this->_axfr) > 0) { + # foreach ($this->_axfr as $axfrserver) { + # if (validate_ip($axfrserver, true) !== false) { + # $bindconf_file .= ' ' . $axfrserver . ';' . "\n"; + # } + # } + # } + # // close allow-transfer + # $bindconf_file .= ' };' . "\n"; + #} + #$bindconf_file .= '};' . "\n"; + #$bindconf_file .= "\n"; return $bindconf_file; }