Use yes rather than random text.
authorRoy Marples <roy@marples.name>
Thu, 16 Oct 2014 10:21:50 +0000 (10:21 +0000)
committerRoy Marples <roy@marples.name>
Thu, 16 Oct 2014 10:21:50 +0000 (10:21 +0000)
resolvconf.conf.5.in
unbound.in

index 551579063d8c7fc48be5784f6ae9e9b0e67a8e41..22f811ffb59c85f19352aa5162bee3358ea83ad8 100644 (file)
@@ -193,7 +193,7 @@ Example pdnsd.conf:
 .It Sy unbound_conf
 This file tells unbound about specific and global name servers.
 .It Sy unbound_insecure
 .It Sy unbound_conf
 This file tells unbound about specific and global name servers.
 .It Sy unbound_insecure
-Instructs unbound to mark the domains as insecure, thus ignoring DNSSEC.
+When set to YES, unbound marks the domains as insecure, thus ignoring DNSSEC.
 .Pp
 Example resolvconf.conf for unbound:
 .D1 name_servers=127.0.0.1
 .Pp
 Example resolvconf.conf for unbound:
 .D1 name_servers=127.0.0.1
index be70a9d89c8996f2ebd1521a0fe0ccb43c6691b6..124cecf624edba1c426ded73851dde7421d5a085 100644 (file)
@@ -43,9 +43,11 @@ newconf="# Generated by resolvconf$NL"
 for d in $DOMAINS; do
        dn="${d%%:*}"
        ns="${d#*:}"
 for d in $DOMAINS; do
        dn="${d%%:*}"
        ns="${d#*:}"
-       if [ -n "$unbound_insecure" ]; then
+       case "$unbound_insecure" in
+       [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
                newconf="$newconf${NL}domain-insecure: \"$dn\""
                newconf="$newconf${NL}domain-insecure: \"$dn\""
-       fi
+               ;;
+       esac
        newconf="$newconf${NL}forward-zone:$NL  name: \"$dn\"$NL"
        while [ -n "$ns" ]; do
                newconf="$newconf       forward-addr: ${ns%%,*}$NL"
        newconf="$newconf${NL}forward-zone:$NL  name: \"$dn\"$NL"
        while [ -n "$ns" ]; do
                newconf="$newconf       forward-addr: ${ns%%,*}$NL"