domain-insecure should appear in a server clause.
authorRoy Marples <roy@marples.name>
Sat, 26 Sep 2015 11:47:47 +0000 (11:47 +0000)
committerRoy Marples <roy@marples.name>
Sat, 26 Sep 2015 11:47:47 +0000 (11:47 +0000)
Fixes [5d2e2c0e3b] thanks to Anonymous.

unbound.in

index 5752e6f2c41230e9e8ae8f8d7d044044b7516dd9..a803615783fc9627036c1b05fc2a331faf66dd7e 100644 (file)
@@ -45,7 +45,8 @@ for d in $DOMAINS; do
        ns="${d#*:}"
        case "$unbound_insecure" in
        [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
-               newconf="$newconf${NL}domain-insecure: \"$dn\""
+               newconf="$newconf${NL}server:$NL"
+               newconf="$newconf       domain-insecure: \"$dn\"$NL"
                ;;
        esac
        newconf="$newconf${NL}forward-zone:$NL  name: \"$dn\"$NL"