1.30.1 [ntpd] - not able to query

Denys Vlasenko vda.linux at googlemail.com
Wed Jul 3 10:26:15 UTC 2019


On Wed, Jul 3, 2019 at 12:02 PM <vtolkm at googlemail.com> wrote:
> On 03/07/2019 11:55, Denys Vlasenko wrote:
> > On Tue, Jul 2, 2019 at 3:20 PM <vtolkm at googlemail.com> wrote:
> >> On 02/07/2019 15:07, Denys Vlasenko wrote:
> >>>> Or won't fix and the ntpd implementation in busybox is not suited to act
> >>>> as server?
> >>> It does act as server - you can query time from it and syncronize with it.
> >>> Support of mode6 requests is not mandatory for server implementation.
> >> I am afraid that is rather questionable considering that none of the
> >> querying tools (below) imply that queries are actually being served.
> >> Do you reckon that all those querying apps are reliant on NTPv2 mode 6
> >> then, none producing an output from ntpd -dddd?
> >>
> >> Started thread started because I am concerned that it actually serves
> >> queries, considering:
> >>
> >> # ntpdate localhost
> >> no server suitable for synchronization found
> > I see this:
> >
> > # ntpdate -qv 127.0.0.1
> >  3 Jul 11:50:04 ntpdate[16422]: ntpdate 4.2.8p13 at 1.3847-o Mon May 20
> > 08:32:18 UTC 2019 (1)
> > server 127.0.0.1, stratum 2, offset 0.000036, delay 0.02782
> >  3 Jul 11:50:04 ntpdate[16422]: adjust time server 127.0.0.1 offset 0.000036 sec
> >
> > IOW: it works.
>
> # ntpdate -ddddqv 127.0.0.1
>  3 Jul 11:00:25 ntpdate[15239]: ntpdate 4.2.8p13 at 1.3847-o Thu Jun 20
> 14:26:21 UTC 2019 (1)
> Looking for host 127.0.0.1 and service ntp
> 127.0.0.1 reversed to localhost
> host found : localhost
> transmit(127.0.0.1)
> transmit to 127.0.0.1
> 127.0.0.1: Server dropped: no data
>
>  3 Jul 11:00:27 ntpdate[15239]: no server suitable for synchronization found

What does ntpd log say when you do this?


More information about the busybox mailing list