Nov 27, 2023

Ubuntu : Change NTP Server

At times it is recommended to change the NTP server for a more accurate Time Sync. This is to ensure all servers have the same Date, Time and Zone.



$ sudo nano /etc/systemd/timesyncd.conf


Add or modify the following line and save the file :-


NTP=time.google.com


Next, restart the time service :-


$ sudo systemctl restart systemd-timesyncd


If required, you can check whether the time server can be contacted :-


$ sudo cat /var/log/syslog | grep systemd-timesyncd


Verify the NTP connections :-


$ sudo timedatectl show-timesync | grep ServerName



!!! HAPPY COMPUTING !!!

No comments:

Post a Comment