]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
unbound: Fix DNS forwarder test
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2016 17:13:07 +0000 (17:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2016 17:13:07 +0000 (17:13 +0000)
The previous version aborted when the validation test
suceeded, but this is not always sufficient in case a
provider filters any DNSKEY, DS or RRSIG records.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/108/filelists/files
config/rootfiles/core/108/update.sh
src/initscripts/init.d/unbound

index 7ef09c48b832ac3d809c77b1f435018b8e4d51c6..6cce4ead17b9418b4ff49521ace395e7cf83786b 100644 (file)
@@ -1,5 +1,6 @@
 etc/system-release
 etc/issue
+etc/rc.d/init.d/unbound
 etc/syslog.conf
 etc/unbound/unbound.conf
 srv/web/ipfire/cgi-bin/fwhosts.cgi
index 3874a6e707674df95fed31fb0e28a02f0430ef78..ba4a6690e06ef6b502f5706f9b94b24386f3dd5d 100644 (file)
@@ -43,6 +43,9 @@ ldconfig
 # Update Language cache
 #/usr/local/bin/update-lang-cache
 
+# Reload unbound upstream name servers
+/etc/init.d/unbound update-forwarders
+
 # Start services
 /etc/init.d/sysklogd restart
 if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
index 1ecbf229ea711fe04eed59e27b5ea1f7c2d61a19..6c7be6cfda8e481f7497a0c179cb19074786d04b 100644 (file)
@@ -259,9 +259,6 @@ test_name_server() {
        # Exit when the server is not reachable
        ns_is_online ${ns} || return 1
 
-       # Return 0 if validating
-       ns_is_validating ${ns} && return 0
-
        local errors
        for rr in DNSKEY DS RRSIG; do
                if ! ns_forwards_${rr} ${ns}; then
@@ -274,8 +271,13 @@ test_name_server() {
                return 3
        fi
 
-       # Is DNSSEC-aware
-       return 2
+       if ns_is_validating ${ns}; then
+               # Return 0 if validating
+               return 0
+       else
+               # Is DNSSEC-aware
+               return 2
+       fi
 }
 
 # Sends an A query to the nameserver w/o DNSSEC