Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2013 09:29:16 +0000
From:      krad <kraduk@gmail.com>
To:        Lena@lena.kiev.ua
Cc:        Gerard Seibert <jerry@seibercom.net>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: unbound and ntp in FreeBSD 10 Beta 3
Message-ID:  <CALfReycErJcWQHUFqQ73K-gGADzUmzz%2Bge-6BekOLC108ssaKw@mail.gmail.com>
In-Reply-To: <20131114145656.GL786@lena.kiev>
References:  <mailman.707.1384439401.45746.freebsd-questions@freebsd.org> <20131113144937.089e8a2a@gumby.homeunix.com> <20131114145656.GL786@lena.kiev>

next in thread | previous in thread | raw e-mail | index | archive | help
it sounds like we might have a feature drop when we moved to unbound, to
fix this problem when running bind in freebsd you could use the following
variables to stop the rc scripts continuing until the nameserver is up and
running. I have submitted a pr to see if it can get added to the base os to
save any hacks


# grep named /etc/rc.conf
named_enable="YES"
named_program="/usr/local/sbin/named"
named_wait="yes"                 # Wait for working name service before
exiting
named_wait_host="localhost"     # Hostname to check if named_wait is enabled
named_enable="YES"


from /etc/rc.d/named

named_poststart () {
        make_symlinks

        if checkyesno named_wait; then
                until ${command%/sbin/named}/bin/host $named_wait_host
>/dev/null 2>&1; do
                        echo "  Waiting for nameserver to resolve
$named_wait_host"
                        sleep 1
                done
        fi
}



On 14 November 2013 14:56, <Lena@lena.kiev.ua> wrote:

> > From: RW <rwmaillists@googlemail.com>
>
> > This looks like the cause of the problem:
> >
> > $ rcorder /etc/rc.d/* | grep -E "ntp|unbound"
> > /etc/rc.d/ntpdate
> > /etc/rc.d/ntpd
> > /etc/rc.d/local_unbound
>
> > Alternately you might try adding an extra rc file with:
> >
> > # PROVIDE: ORDERUNBOUND
> > # REQUIRE: ntpd  ntpdate
> > # BEFORE:  local_unbound
>
> /etc/rc.d/ntpdate contains:
>
> # REQUIRE: NETWORKING syslogd named
>
> I think that "unbound local_unbound" should be included into this line.
>
> I use unbound as local recursive resolver in 8.4-RELEASE. I added that,
> and "sleep 1" before "${ntpdate_program:-ntpdate} $rc_flags
> $ntpdate_hosts".
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReycErJcWQHUFqQ73K-gGADzUmzz%2Bge-6BekOLC108ssaKw>