pool.ipfire.org cannot resolved. Now try both default dns servers. If one works dns is working.
Signed-off-by: Arne Fitzenreiter arne_f@ipfire.org --- src/initscripts/system/unbound | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index 1b42ac720..b959520a1 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -267,7 +267,8 @@ get_memory_amount() {
fix_time_if_dns_fails() { # If DNS is working, everything is fine - if resolve "ipfire.pool.ntp.org" &>/dev/null; then + if resolve "0.ipfire.pool.ntp.org" &>/dev/null || \ + resolve "1.ipfire.pool.ntp.org" &>/dev/null ; then return 0 fi
Reviewed-by: Peter Müller peter.mueller@ipfire.org
pool.ipfire.org cannot resolved. Now try both default dns servers. If one works dns is working.
Signed-off-by: Arne Fitzenreiter arne_f@ipfire.org
src/initscripts/system/unbound | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index 1b42ac720..b959520a1 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -267,7 +267,8 @@ get_memory_amount() {
fix_time_if_dns_fails() { # If DNS is working, everything is fine
- if resolve "ipfire.pool.ntp.org" &>/dev/null; then
- if resolve "0.ipfire.pool.ntp.org" &>/dev/null || \
return 0 firesolve "1.ipfire.pool.ntp.org" &>/dev/null ; then