public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] unbound: fix dns working check
Date: Sat, 19 Feb 2022 09:42:18 +0000	[thread overview]
Message-ID: <93e8cc19-864a-170a-9568-de88cc366003@ipfire.org> (raw)
In-Reply-To: <20220219082206.5807-1-arne_f@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

Reviewed-by: Peter Müller <peter.mueller(a)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(a)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
>  

      reply	other threads:[~2022-02-19  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19  8:22 Arne Fitzenreiter
2022-02-19  9:42 ` Peter Müller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93e8cc19-864a-170a-9568-de88cc366003@ipfire.org \
    --to=peter.mueller@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox