From f23b0463183f0bc3cb93e0d50320456653847479 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 3 Feb 2020 17:40:55 +0000 Subject: [PATCH] unbound: try resolve twice before time sync with ipfire server Signed-off-by: Arne Fitzenreiter --- src/initscripts/system/unbound | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index 78be8e2d50..b6b57f1c1d 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -274,6 +274,8 @@ get_memory_amount() { } fix_time_if_dns_fails() { + # Sometimes the first try fails so do it twice + resolve "ping.ipfire.org" &>/dev/null # If DNS is working, everything is fine if resolve "ping.ipfire.org" &>/dev/null; then return 0 -- 2.39.2