aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorStuart Wyatt <stuart@gogglespisano.com>2015-04-09 09:19:20 -0700
committerStuart Wyatt <stuart@gogglespisano.com>2015-04-09 09:19:20 -0700
commit52d9fc60c41d93242396976091deaa5ade61e4db (patch)
tree127a7aad81f09197f4db50377dccbec57c3698a1 /config
parenta9c38e6a1977a1a5359f5bd9d244912830ab2541 (diff)
downloadpfsense-packages-52d9fc60c41d93242396976091deaa5ade61e4db.tar.gz
pfsense-packages-52d9fc60c41d93242396976091deaa5ade61e4db.tar.bz2
pfsense-packages-52d9fc60c41d93242396976091deaa5ade61e4db.zip
BIND - add global settings for named.conf
Add field similar to custom options, but for global settings. Rather than being added to the options{} clause, these settings are added directly to named.conf. This allows the addition of items such as key{} and server{} clauses.
Diffstat (limited to 'config')
-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>