summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/unbound.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 507ef12..a142a91 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -242,10 +242,11 @@ EOF;
$statistics = unbound_statistics();
/* Add custom Unbound options */
- //if ($config['unbound']['custom_options']) {
- // foreach (preg_split('/\s+/', $config['unbound']['custom_options']) as $c)
- //
- //}
+ if ($config['dns']['custom_options']) {
+ $custom_option = "# Unbound custom option"
+ foreach (preg_split('/\s+/', $config['dns']['custom_options']) as $ent)
+ $custom_option .= $ent."\n";
+ }
$unboundconf = <<<EOD
##########################
@@ -311,6 +312,8 @@ include: {$g['unbound_chroot_path']}/etc/host_entries.conf
# Domain overrides
include: {$g['unbound_chroot_path']}/etc/domainoverrides.conf
+{$custom_options}
+
###
# Remote Control Config
###
OpenPOWER on IntegriCloud