From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: [PATCH] unbound: fix dns working check Date: Sat, 19 Feb 2022 09:42:18 +0000 Message-ID: <93e8cc19-864a-170a-9568-de88cc366003@ipfire.org> In-Reply-To: <20220219082206.5807-1-arne_f@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6043330805429028990==" List-Id: --===============6043330805429028990== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Reviewed-by: Peter Müller > 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 > --===============6043330805429028990==--