Skip to content
Browse files

Custom options should be before forward-zone as seen on the forum.

  • Loading branch information...
1 parent 2601bbd commit 464a48605e7e8edfe0b2476ac66deb23e937dc3f Warren Baker committed Feb 26, 2014
Showing with 8 additions and 9 deletions.
  1. +8 −9 config/unbound/unbound.inc
View
17 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 .= <<<EOD
###

0 comments on commit 464a486

Please sign in to comment.
Something went wrong with that request. Please try again.