From 52d9fc60c41d93242396976091deaa5ade61e4db Mon Sep 17 00:00:00 2001 From: Stuart Wyatt Date: Thu, 9 Apr 2015 09:19:20 -0700 Subject: 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. --- config/bind/bind.inc | 2 ++ config/bind/bind.xml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) (limited to 'config/bind') 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 .= <<5 base64 + + listtopic + Global Settings + temp01 + + + Global Settings + bind_global_settings + + + They'll be added to the configuration. They need to be named.conf native settings.]]> + + textarea + 65 + 5 + base64 + -- cgit v1.2.3