aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/bind/bind.inc2
-rw-r--r--config/bind/bind.xml17
2 files changed, 19 insertions, 0 deletions
diff --git a/config/bind/bind.inc b/config/bind/bind.inc
index 66b16464..77f3a770 100644
--- a/config/bind/bind.inc
+++ b/config/bind/bind.inc
@@ -154,10 +154,12 @@ function bind_sync()
$hide_version = $bind['bind_hide_version'];
$bind_notify = $bind['bind_notify'];
$custom_options = base64_decode($bind['bind_custom_options']);
+ $bind_global_settings = base64_decode($bind['bind_global_settings']);
$bind_logging = $bind['bind_logging'];
$bind_conf = "#Bind pfsense configuration\n";
$bind_conf .= "#Do not edit this file!!!\n\n";
$bind_conf .= "$rndc_bindconf\n";
+ $bind_conf .= "$bind_global_settings\n";
$bind_conf .= <<<EOD
options {
diff --git a/config/bind/bind.xml b/config/bind/bind.xml
index b64ba256..3b5d9ad2 100644
--- a/config/bind/bind.xml
+++ b/config/bind/bind.xml
@@ -298,6 +298,23 @@
<rows>5</rows>
<encoding>base64</encoding>
</field>
+ <field>
+ <type>listtopic</type>
+ <name>Global Settings</name>
+ <fieldname>temp01</fieldname>
+ </field>
+ <field>
+ <fielddescr>Global Settings</fielddescr>
+ <fieldname>bind_global_settings</fieldname>
+ <description>
+ <![CDATA[You can put your own global settings here.<br>
+ They'll be added to the configuration. They need to be named.conf native settings.]]>
+ </description>
+ <type>textarea</type>
+ <cols>65</cols>
+ <rows>5</rows>
+ <encoding>base64</encoding>
+ </field>
</fields>
<custom_php_after_head_command>
</custom_php_after_head_command>