Re: ntpd vs ntpdate with no hardware clock

Bakul Shah <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>

> On Jul 7, 2024, at 12:07 PM, Marcin Cieslak <[email protected]> wrote:
> 
> On Sun, 7 Jul 2024, Ronald Klop wrote:
> 
>> I created fakertc for my rpi4. https://www.freshports.org/sysutils/fakertc/
>> 
>> Saves the time on shutdown and sets it back early at boot.
>> 
>> Plus I use ntpdate together with ntpd. Works fine.
> 
> I have question here:
> 
> Rrecently I have removed an RTC battery
> from my amd64 system and it turned out
> that ntpd couldn't do anything to set the time
> because the local DNS resolver failed
> (I presume it was dnssec failure).
> 
> What is the most elegant solution to
> cope with such a race condition?
> (DNS needs time, setting time needs DNS)

I ran into this on an old MBP. See
https://forums.freebsd.org/threads/when-named-stops-working-on-reboot-after-a-long-power-out.93673/

I don't have a solution. May be use ntpdate
with a dotted address instead of a dns name
for an ntp server?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.