ntp
I remember looking at this circa 2016 - 2021 and letting go at that time, crony had just been released and systemd was still relatively new at that time.
systemd commands
- sudo systemctl status systemd-timesyncd
- The default configuration is shown in
/etc/systemd/timesyncd.conf(All the defaults are shown commented out) - Copy the default configuration in
/etc/systemd/timesyncd.confto/etc/systemd/timesyncd.conf.d/timesyncd.confand modify options in/etc/systemd/timesyncd.conf.d/timesyncd.conf
- timedatectl timesync-status
ntp servers
ntp servers can be checked using the ntpdate command, which can be loaded in Debian with sudo apt install ntpsec-ntpdate
Ranked by testing with sudo ntpdate -q {ntp servername/ip}
| sync | accuracy | server | ip address | stratum | leap status |
|---|---|---|---|---|---|
| +0.018040 | +/- 0.026068 | nets.org.sg | 129.126.239.115 | s1 | no-leap |
| +0.020117 | +/- 0.027653 | server 3.au.pool.ntp.org | 103.126.53.123 | s2 | no-leap |
| +0.020819 | +/- 0.027315 | 0.au.pool.ntp.org | 139.99.135.247 | s2 | no-leap |
| +0.050351 | +/- 0.064718 | 1.au.pool.ntp.org | 180.150.8.191 | s1 | no-leap |
| +2.023585 | +/- 2.027176 | 2.au.pool.ntp.org | 110.232.114.22 | s2 | no-leap |