I am seeing a lot of DNS traffic from my RoPieee devices. It seems every 12 secs the Ropieee is doing a NTP sync, by trying to contact 0.pool.ntp.org - 3.pool.ntp.org every 12 secs. That seems excessive.
I have a local DNS server and NTP server, so I am redirecting the DNS queries to my local NTP server.
For public NTP servers, the minpoll is suggested to be no less than 64secs.
So I have two suggestions or questions:
can we add a config for the used NTP servers/pool ?
can we add a config for the polling frequency, or at least ease up the current polling frequency ?
(one assumption is the dns query every 12secs is indicative for a ntp sync every 12secs)
The answer to both questions would be ‘no’. Adding a parameter like this is not in line with the goals of RoPieee.
That being said… the 12s interval you mention is excessive and not good. And I also don’t understand it either. The default minpoll for ntpd is 6, which is 64 seconds (2^6).
I need to investigate it a bit. On my to do list is also a possible switch from ntpd to chronyd, so maybe I need to increase the prio
If DHCP options are an option, one could also check out option 101: “Reference to the TZ Database”
I have both option 42 and option 101 configured (and 102 too) via my Unifi server.
But understandable this might be overkill for Ropieee, since I hardly see any appliance adhere to options like these.
Well, in general I don’t mind ‘overkill’, as long as it happens automagically and is not something the user needs to think of. So if we can support things like this, without exposing it to the user (like with a setting for example) then it could be interesting.
Take for example the TZ thingie: for those that run RoPieee with a display there’s an option to set the timezone. If we can automate this because it is provided via DHCP … that might be cool.
@Stef_van_Hooijdonk Small update: I’ve switched from ntpd to chrony and in that process looked into our discussion a little bit more.
So next release of RoPieee (this month, 2022.04) will support 101; automagically, only once on first installation.
I’ve got some stuff lying around for option 42, but that won’t make this release.
But I’m pretty convinced that in a few releases NTP is configured according your wishes, without the need to expose settings to the user (a must for RoPieee).