From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arne Fitzenreiter To: development@lists.ipfire.org Subject: [PATCH] unbound: fix dns working check Date: Sat, 19 Feb 2022 09:22:06 +0100 Message-ID: <20220219082206.5807-1-arne_f@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7646927739419068432==" List-Id: --===============7646927739419068432== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit pool.ipfire.org cannot resolved. Now try both default dns servers. If one works dns is working. Signed-off-by: Arne Fitzenreiter --- 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 -- 2.34.1 --===============7646927739419068432==--