jethrocarr / namedmanager

AGPL web-based DNS management interface in PHP
349 stars 126 forks source link

Add the ability for Bind Zones to configure allow-query and place notify on #53

Open arnvid opened 7 years ago

arnvid commented 7 years ago

We needed to add the following to our zones: allow-query per zone and notify yes. Would be good if this could be configured per DNS or per Zone.

diff --git a/bind/include/application/inc_bind.php b/bind/include/application/inc_bind.php
index b913890..bb7af50 100644
--- a/bind/include/application/inc_bind.php
+++ b/bind/include/application/inc_bind.php
@@ -291,6 +291,8 @@ class bind_api extends soap_api
                                {
                                        fwrite($fh, "\tfile \"". $domain["domain_name"] .".zone\";\n");
                                }
+                                fwrite($fh, "\tallow-query { any; };\n");
+                                fwrite($fh, "\tnotify yes;\n");

                                fwrite($fh, "\tallow-update { none; };\n");
                                fwrite($fh, "};\n");