From 464a48605e7e8edfe0b2476ac66deb23e937dc3f Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Wed, 26 Feb 2014 22:40:10 +0200 Subject: Custom options should be before forward-zone as seen on the forum. --- config/unbound/unbound.inc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'config/unbound') diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc index e47a720f..342b1f2b 100644 --- a/config/unbound/unbound.inc +++ b/config/unbound/unbound.inc @@ -541,6 +541,14 @@ access-control: ::1 allow EOD; + # Handle custom options + if (!empty($adv_config['custom_options'])) { + $custom_options = explode(";", ($adv_config['custom_options'])); + $unbound_conf .= "\n# Unbound Custom options\n"; + foreach ($custom_options as $ent) + $unbound_conf .= $ent."\n"; + } + // Set up forward-zones if configured if ($unbound_config['forwarding_mode'] == "on") { $dnsservers = array(); @@ -569,15 +577,6 @@ EOD; } } - - # Handle custom options - if (!empty($adv_config['custom_options'])) { - $custom_options = explode(";", ($adv_config['custom_options'])); - $unbound_conf .= "\n# Unbound Custom options\n"; - foreach ($custom_options as $ent) - $unbound_conf .= $ent."\n"; - } - $unbound_conf .= <<