Skip to content

Commit c36fe43

Browse files
committed
- Implemented FS#2167.
1 parent dd7ce47 commit c36fe43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function write_named_conf($data, $dns_config) {
305305
global $app, $conf;
306306

307307
//* Only write the master file for the current server
308-
$tmps = $app->db->queryAllRecords("SELECT origin, xfer, also_notify FROM dns_soa WHERE active = 'Y' AND server_id=".$conf["server_id"]);
308+
$tmps = $app->db->queryAllRecords("SELECT origin, xfer, also_notify, update_acl FROM dns_soa WHERE active = 'Y' AND server_id=".$conf["server_id"]);
309309
$zones = array();
310310

311311
//* Check if the current zone that triggered this function has at least one NS record
@@ -341,6 +341,7 @@ function write_named_conf($data, $dns_config) {
341341
$options .= " allow-transfer {none;};\n";
342342
}
343343
if(trim($tmp['also_notify']) != '') $options .= ' also-notify {'.str_replace(',',';',$tmp['also_notify']).";};\n";
344+
if(trim($tmp['update_acl']) != '') $options .= " allow-update {".str_replace(',',';',$tmp['update_acl']).";};\n";
344345

345346
if(file_exists($zone_file)) {
346347
$zones[] = array( 'zone' => substr($tmp['origin'],0,-1),

0 commit comments

Comments
 (0)