Setting Up Reliable Network Time on Ubuntu
Accurate system time is easy to overlook until a certificate fails, a security log appears out of order, or a scheduled backup runs an hour late. Ubuntu includes a Network Time Protocol client for keeping the machine’s clock aligned with trusted time servers, using a small amount of network traffic and very little administration.
The details vary according to the Ubuntu release and the service already installed. Modern desktop and server editions commonly use systemd-timesyncd or Chrony, while older installations may use the traditional ntp package. The goal is the same: maintain a stable UTC-based clock, handle network interruptions sensibly, and present the correct local time for users in places such as Sydney, Brisbane, Adelaide, Perth and Darwin.
Why Accurate Time Matters
Computers measure and store time in a way that is separate from the local display shown in the desktop panel. Ubuntu normally keeps the hardware clock and operating-system clock based on UTC, then applies the configured time zone when showing dates to users. This arrangement avoids confusion when daylight saving changes occur and makes communication between servers easier.
Time synchronisation supports several security mechanisms. TLS certificates are checked against their validity period, Kerberos tickets depend on clocks being close to one another, and signed packages or repository metadata can be rejected when a system appears to be far in the past or future. Log analysis also relies on consistent timestamps; a small Python service, for example, is much easier to inspect when requests and system events line up in timestamped logs.
Australia makes time zones particularly visible. Sydney and Melbourne move between AEST and AEDT, while Brisbane stays on standard time and Perth uses AWST. A server in Queensland should not be configured with a Sydney time zone merely because both locations are on the east coast. The clock should remain synchronised to UTC, with the correct IANA time-zone setting handling the displayed local time.
Check The Existing Ubuntu Configuration
Begin by identifying the Ubuntu release and inspecting the current time state:
lsb_release -a
timedatectl status
A healthy result usually shows that the system clock is synchronised, NTP service is active, and the time zone is appropriate. The command also reports whether the real-time clock is using UTC. On a personal laptop, the hardware clock may occasionally be changed by another operating system, so dual-boot systems deserve particular attention.
To see which service is listening or running, use:
systemctl status systemd-timesyncd
systemctl status chrony
systemctl status ntp
Some commands may report that a unit does not exist; that is normal. Ubuntu should generally have one active time client rather than several competing daemons. Running ntpd, Chrony and systemd-timesyncd together can create confusing status messages and unnecessary corrections.
The time zone can be set independently of the NTP client. For example, a computer located in Brisbane can use:
sudo timedatectl set-timezone Australia/Brisbane
A machine in Perth would use Australia/Perth, and one in Adelaide would use Australia/Adelaide. Confirm the result with timedatectl. This setting changes the way dates are displayed; it does not replace network synchronisation.
Use Systemd-Timesyncd For A Light Client
systemd-timesyncd is a sensible choice for a workstation or small Ubuntu installation that only needs to keep its own clock accurate. It is a simple SNTP client rather than a full time server, and its low overhead suits laptops, desktops and small virtual machines.
Check whether it is enabled:
sudo systemctl enable --now systemd-timesyncd
systemctl status systemd-timesyncd
timedatectl timesync-status
The exact output differs between Ubuntu releases, but useful fields include the selected server, polling interval, reachability, and estimated offset. If timedatectl timesync-status is unavailable or gives limited information, inspect the service log:
journalctl -u systemd-timesyncd --since today
The server list is commonly configured in /etc/systemd/timesyncd.conf. A practical configuration can look like this:
[Time]
NTP=au.pool.ntp.org
FallbackNTP=0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org
After saving the file, reload the service:
sudo systemctl restart systemd-timesyncd
timedatectl status
The Australian pool name directs the client towards suitable servers in or near Australia, though the actual host selected can vary. A home user on an NBN connection in Newcastle or Geelong normally does not need a manually chosen server. A business may instead use an internal source supplied by its IT provider, especially when firewall rules restrict outbound UDP traffic.
Choose Chrony For Servers And Unstable Links
Chrony is often the better choice for servers, virtual machines, mobile systems and networks that experience intermittent connectivity. It can estimate clock drift efficiently, recover quickly after a long offline period, and make gradual adjustments without repeatedly stepping the clock.
Install it on Ubuntu with:
sudo apt update
sudo apt install chrony
On systems where another client is active, stop that service before enabling Chrony:
sudo systemctl disable --now systemd-timesyncd
sudo systemctl enable --now chrony
The main configuration file is usually /etc/chrony/chrony.conf. Existing Ubuntu installations often contain suitable pool entries. If you need to specify Australian sources, a simple arrangement might be:
pool au.pool.ntp.org iburst
pool 0.ubuntu.pool.ntp.org iburst
pool 1.ubuntu.pool.ntp.org iburst
The iburst option asks for a short burst of measurements when a source becomes reachable, helping the client settle sooner during startup. Avoid filling the file with a long list of random servers. Three or four reliable sources are generally enough, and an organisation with several Ubuntu hosts may prefer an internal time server for consistency.
Inspect Chrony’s operation with:
chronyc tracking
chronyc sources -v
chronyc sourcestats -v
tracking shows the estimated offset, frequency adjustment and reference source. In sources, an asterisk normally identifies the source currently selected, while question marks can indicate that a source has not yet supplied usable replies. A few seconds of delay during boot is not automatically a fault; look for steady reachability and a decreasing offset.
Configure Older Ntpd Installations Carefully
Older Ubuntu releases commonly used the ntp package, and some long-lived machines still contain it. It remains useful to understand because archived systems, appliance images and older documentation may refer to /etc/ntp.conf and the ntpd service.
Install or inspect it with:
sudo apt update
sudo apt install ntp
sudo systemctl enable --now ntp
Edit /etc/ntp.conf and review its server or pool lines. A regional pool can be specified as:
pool au.pool.ntp.org iburst
Then restart the daemon and query it:
sudo systemctl restart ntp
ntpq -p
The ntpq -p display contains reachability, delay, offset and jitter columns. The selected peer is marked with an asterisk. Large offsets, a reach value of zero, or a missing selection may point to a firewall, DNS failure, an incorrect configuration, or a machine whose clock is too far away for normal gradual correction.
Do not install ntp simply because an old tutorial recommends it. On a current Ubuntu release, Chrony is usually the more capable full client, while systemd-timesyncd is adequate for basic workstation use. Before changing packages on a production server, record the active service and back up its configuration. Notes gathered from specialist Linux resources, such as these practical Linux notes, can be helpful, but commands should still be matched to the Ubuntu version in front of you.
Check Firewalls, DNS And Virtual Machines
NTP normally uses UDP port 123. A client needs outbound access to that port and must be able to resolve the configured server names. If Ubuntu is behind a strict corporate firewall, university network or managed office connection, the administrator may need to permit outbound NTP or provide a local time source.
Useful checks include:
getent hosts au.pool.ntp.org
sudo ufw status verbose
journalctl -u chrony --since "30 minutes ago"
A failed DNS lookup is different from an NTP response failure. If names resolve but sources remain unreachable, investigate filtering, captive portals, VPN policies and routing. Consumer routers usually allow client traffic without special configuration, although some mobile broadband services and guest Wi-Fi networks impose additional restrictions.
Virtual machines deserve extra care because their clock can be influenced by the host. Ubuntu should still run a time client, but the hypervisor’s guest tools may also provide clock correction. Large corrections from both layers can produce unstable results. In cloud environments, including Australian regions in Sydney or Melbourne, follow the provider’s guidance and avoid enabling multiple independent mechanisms that continually fight over the clock.
A computer that has been powered off for weeks may have a significantly wrong hardware clock. Chrony can often recover gracefully, but a severe error may require a one-time manual adjustment before normal synchronisation succeeds. Use timedatectl, service logs and client-specific status commands rather than repeatedly setting the clock by hand.
Verify Synchronisation And Ongoing Health
After configuration, allow several minutes for the client to select a source and measure drift. Run:
timedatectl status
Look for System clock synchronized: yes and an active NTP service. With Chrony, also run chronyc tracking; with ntpd, use ntpq -p. A single successful query is less meaningful than a stable result observed over time.
The local time should be checked separately from synchronisation:
date
date -u
date displays the configured local zone, while date -u displays UTC. On an Adelaide workstation during daylight saving, the local output should reflect daylight time while UTC remains unchanged. This distinction matters for cron jobs, database records and support conversations where someone says a task ran “at eight” without specifying the zone.
Keep the client enabled across reboots and review logs when applications report certificate or authentication errors. An occasional source change is normal because pool services use several hosts. Persistent warnings, large offsets or repeated service restarts are signs to investigate rather than hide.
For most Ubuntu users, a modest configuration is the reliable one: set the correct Australian time zone, run one NTP client, use reachable sources, permit the required traffic, and verify the status after rebooting. That approach keeps laptops, office servers and cloud workloads aligned without turning ordinary clock maintenance into a separate infrastructure project.