summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2015-11-25 18:33:13 -0800
committerStephen Beaver <sbeaver@netgate.com>2015-12-01 07:42:57 -0500
commitca47c065d4a197b24c6dcd8700ca1fd195a4d719 (patch)
tree8f98cb7926f50301b575e63256bde700d71570bf /src/etc/inc/unbound.inc
parent2538495e6f6378b438cda3f72493778e7dc95ac7 (diff)
downloadpfsense-ca47c065d4a197b24c6dcd8700ca1fd195a4d719.zip
pfsense-ca47c065d4a197b24c6dcd8700ca1fd195a4d719.tar.gz
Services - DNS Resolver - System Domain Local Zone Type Option
Expose system domain unbound local-zone type to be configurable.
Diffstat (limited to 'src/etc/inc/unbound.inc')
-rw-r--r--src/etc/inc/unbound.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/etc/inc/unbound.inc b/src/etc/inc/unbound.inc
index 5979fae..35613e8 100644
--- a/src/etc/inc/unbound.inc
+++ b/src/etc/inc/unbound.inc
@@ -559,7 +559,13 @@ function unbound_add_domain_overrides($pvt_rev="") {
function unbound_add_host_entries() {
global $config, $g;
- $unbound_entries = "local-zone: \"{$config['system']['domain']}\" transparent\n";
+ if (empty($config['unbound']['system_domain_local_zone_type'])) {
+ $system_domain_local_zone_type = "transparent";
+ } else {
+ $system_domain_local_zone_type = $config['unbound']['system_domain_local_zone_type'];
+ }
+
+ $unbound_entries = "local-zone: \"{$config['system']['domain']}\" $system_domain_local_zone_type\n";
$hosts = read_hosts();
$added_ptr = array();
OpenPOWER on IntegriCloud