NTP management
The Network Time Protocol (NTP) server can be changed by using a user account with management access set to admin.
You can refer to the steps to change your NTP server:
1. Editing /etc/chrony.conf
sudo vi /etc/chrony.conf
Use the following
format:pool my-NTP-server [option]...
Replace
my-NTP-server
with the FQDN of your actual NTP server. You can specify multiple NTP
servers.Among the options, it is beneficial to include the iburst
option.
chronyd
will make four quick requests to an NTP server configured with the
iburst
option right after it starts up. A single query is often insufficient for a
reliable assessment of an NTP server's validity, so these four queries expedite the evaluation
process.
pool pool1.ntp.org iburst
pool pool2.ntp.org iburst
pool pool3.ntp.org iburst
2. Applying the modified configuration
sudo systemctl restart chronyd
3. Checking the modified configuration
You can check the modified configuration by entering the following command:
sudo chronyc sources
You will see a list of NTP sources along with their status and response times. Look for the new
servers you added to ensure they're being queried by chronyd
. Each server is marked
with a caret (^) symbol, which indicates that the server is being actively used by your system.