Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Configure a Linux server as an NTP client by installing a time-synchronisation daemon, pointing it at the NTP Pool, restarting the daemon, and checking its status. For a new installation, chrony is usually the simplest path:

pool pool.ntp.org iburst
driftfile /var/lib/chrony/drift
makestep 1 3
rtcsync

Save those directives in the distribution’s chrony configuration file, restart the chrony service, then run chronyc tracking and chronyc sources -v. If the host runs ntpd instead, use the current pool pool.ntp.org iburst directive where supported, restart ntpd, and verify with ntpq -pn.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What this configuration does

NTP (Network Time Protocol) keeps a computer’s system clock aligned with reference clocks reached over the network. On a Linux server, an NTP daemon runs continuously as a client: it contacts remote time sources, estimates the local clock’s error and rate, and gradually corrects the clock. Accurate time matters to log ordering, TLS certificate checks, authentication systems, scheduled jobs, distributed databases, monitoring, and incident investigation.

This guide configures the server to obtain time from the NTP Pool Project. It does not automatically turn the machine into a time server for other hosts. Synchronising this host and serving time to clients are separate roles. A client-only configuration is the safer default for an ordinary Internet-connected server.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

The NTP Pool is DNS-backed. Names such as pool.ntp.org resolve to multiple public NTP servers, and the returned addresses can change. The project states that 0.pool.ntp.org through 3.pool.ntp.org point to a random set of servers that changes every hour. A daemon therefore needs a pool-aware configuration rather than a permanently fixed address list.

Choose chrony or ntpd before editing files

Linux distributions differ in which daemon they install by default. Do not run two independent NTP daemons at the same time: they can compete to control the system clock. Identify the active implementation, then edit only its configuration.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Decision point chrony ntpd
Typical role in a modern distribution Common default or readily available package; confirm the distribution’s package and unit names. Legacy or compatibility implementation on some systems; confirm that the ntpd package and service are installed.
Dynamic NTP Pool configuration Use the pool directive, ideally pool pool.ntp.org iburst. NTP 4.2.7 and later has an improved pool implementation; older installations commonly use numbered server lines.
Usual configuration path /etc/chrony/chrony.conf on many distributions; some use /etc/chrony.conf. /etc/ntp.conf or the equivalent path chosen by the distribution.
Restart and query tools Restart the chrony unit, then use chronyc tracking and chronyc sources -v. Restart the ntpd unit, then use ntpq -pn.
Client versus server The snippets in this guide are client configuration only. The snippets in this guide are client configuration only; serving other hosts requires deliberate access restrictions.

If you are unsure which daemon is active, inspect the service list and installed packages using your distribution’s normal service and package-management tools. Stop or disable a competing daemon before enabling the one you intend to use.

Prepare the host

Install the daemon supplied by your distribution

Install the chrony package for the chrony procedure or the ntpd package for the ntpd procedure. Package names, service-unit names and configuration paths vary by distribution and release, so use the package and unit name documented by your operating system. Ensure the selected service is enabled so it starts after a reboot.

Check network and firewall prerequisites

The daemon must be able to resolve the pool name through DNS and send and receive NTP traffic. NTP uses UDP port 123. A local firewall or upstream egress policy that blocks outbound UDP/123 will prevent synchronisation even when the configuration is correct. DNS filtering that returns no usable pool addresses causes the same symptom.

Back up the existing configuration

Before changing a file, make a dated copy. Keep the backup outside the active configuration path or give it a name that the daemon will not load as an additional configuration file. A backup lets you restore distribution defaults if another service, local policy or monitoring integration depends on them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Configure chrony with the NTP Pool

1. Open the correct file

Edit /etc/chrony/chrony.conf when that path exists. Some distributions use /etc/chrony.conf instead. Preserve unrelated local settings unless they conflict with the public server lines you are replacing.

2. Add the pool and supporting directives

Place the following directives in the active chrony configuration:

pool pool.ntp.org iburst
driftfile /var/lib/chrony/drift
makestep 1 3
rtcsync

Each line has a distinct purpose:

Directive Purpose Operational effect
pool pool.ntp.org iburst Defines a DNS name representing multiple NTP servers. Chrony resolves the pool and maintains client associations as the DNS-backed membership changes. The iburst option sends a burst of requests to speed initial synchronisation.
driftfile /var/lib/chrony/drift Persists chrony’s estimate of the local clock’s rate error. The daemon can start with a useful estimate instead of relearning the clock’s drift from zero after every restart.
makestep 1 3 Allows a large correction during early operation. When the initial error is greater than one second, chrony may step the clock during its first three updates rather than waiting for a slow gradual correction. This is intended for startup recovery, not continual clock jumping.
rtcsync Keeps the hardware real-time clock aligned with system time where supported by Linux. Chrony periodically copies the synchronised system clock to the hardware clock so a reboot starts closer to the correct time.

Chrony’s documentation recommends the pool directive when one name represents several servers that may change over time. Do not expand the pool into a static list merely to reproduce addresses seen in a DNS lookup.

3. Remove or disable conflicting public-server lines

Many distributions ship example server or pool lines. If you leave unrelated public sources enabled, chrony may use them in addition to the NTP Pool. That can be intentional, but for a predictable NTP Pool setup, comment out or remove conflicting public-server entries and retain the sources you actually intend to trust. Keep any locally required reference source only when you understand why it is present.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. Restart the chrony service

Changing the file does not reload every setting automatically. Restart the service with the unit name used by your distribution. Common unit names are chrony and chronyd:

sudo systemctl restart chrony
sudo systemctl restart chronyd

Run only the command matching an installed unit; a “unit not found” message means that name is not the one your distribution uses. If the service is not enabled yet, enable it with the corresponding unit so it starts at boot.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

5. Verify synchronisation

Use chrony’s query utility immediately after the restart and again after the daemon has had time to contact several sources:

chronyc tracking
chronyc sources -v

chronyc tracking reports the daemon’s overall state, including whether the local clock is synchronised and the current offset estimate. chronyc sources -v lists the sources chrony is considering. Look for a selected source and an offset that is small and decreasing as updates arrive. Report the output you actually observe rather than assuming a fixed convergence time; network reachability, source response and the size of the initial clock error all affect it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure current ntpd with the NTP Pool

Use the pool directive when the implementation supports it

NTP 4.2.7 and later includes an improved implementation of the pool directive. In a current ntpd configuration, add:

pool pool.ntp.org iburst

The directive creates persistent client-mode associations to multiple remote servers represented by the pool name. Because the pool’s DNS answers change, ntpd can replace associations as membership changes instead of treating one resolved address as permanent.

Use numbered server lines for older ntpd installations

The NTP Pool Project publishes this compatibility configuration for implementations that do not have the improved pool support:

driftfile /var/lib/ntp/ntp.drift
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org

The numbered names point to random server sets that change every hour. They remain useful for older ntpd versions, but the current pool directive is preferable when your ntpd version supports it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Edit, restart and query ntpd

Edit /etc/ntp.conf or the equivalent file selected by your distribution. Keep the drift-file line and replace example public servers with either the supported pool directive or the numbered compatibility lines. Restart the ntpd service using the unit name installed on the host, commonly ntp or ntpd:

sudo systemctl restart ntp
sudo systemctl restart ntpd

Then inspect the peer table:

ntpq -pn

The command shows the configured or discovered peers, reachability and selection state. A usable result should show reachable pool peers and one selected source after the daemon has exchanged enough packets. If the table is empty or every peer is unreachable, troubleshoot DNS, UDP/123 access, service state and configuration syntax before changing servers.

Choose the right NTP Pool zone

pool.ntp.org is the global pool name. The project also provides regional and continental zones where capacity is available. A country zone may be unavailable or may have very few participating servers. When the project’s zone information indicates that a country zone is sparse or unavailable, a continental zone is a better choice than forcing a low-capacity country name.

Use a zone that is geographically sensible for the host’s network location, but do not assume that geographic proximity guarantees better time. The pool is dynamic, and each DNS response can return different participating servers. Keep at least three usable sources for reliable operation; chrony’s FAQ specifically recommends at least three servers.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When changing zones, alter only the pool name in the daemon configuration, restart the daemon, and verify the new source set with the daemon’s query tool. Do not hard-code addresses obtained from one DNS response, because those addresses are expected to change.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Client-only configuration versus serving time

The examples above make the Linux server an NTP client. They do not grant permission for other machines to query it, and they do not configure it as an authoritative source. This distinction matters because an Internet-facing NTP service can be abused for reflection and amplification traffic.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

If the host must serve time to an internal network, treat that as a separate design. Define which networks are allowed, apply the daemon’s access restrictions, limit exposure with the host firewall, and monitor the service. Do not copy server-mode examples into a client-only setup. In particular, do not expose an Internet-facing ntpd instance without the access restrictions required by the implementation and your network policy.

Troubleshoot a host that is not synchronising

Symptom Likely cause Action
The service will not start after editing. Syntax error, wrong file path, invalid directive or a second daemon already running. Check the service status and logs, confirm which configuration path the unit loads, validate the edited lines, and stop the competing daemon before restarting.
chronyc sources -v shows no usable source. DNS cannot resolve the pool, outbound UDP/123 is blocked, or the pool servers are unreachable from this network. Test DNS resolution, verify firewall and egress policy for UDP/123, then rerun the query after restarting chrony.
ntpq -pn lists peers but none is selected. Peers have not responded sufficiently, the initial offset is large, or packets are filtered. Check reachability and system time, confirm that the configured pool or numbered names are correct, and allow the daemon time to collect responses. Do not infer success from names alone; use the peer state shown by ntpq.
The clock is still far off immediately after boot. The daemon has not completed initial exchanges, the drift file is missing or unwritable, or startup correction is not configured. For chrony, verify the drift-file path, makestep 1 3, and iburst. For ntpd, verify the drift-file path and peer reachability, then inspect the query output.
Time appears to jump unexpectedly. A startup step corrected a large initial error. Check whether the correction occurred during the allowed startup updates. A one-time startup correction is different from repeated jumps during normal operation; repeated changes indicate unstable sources, a broken clock or another process adjusting time.
Sources change between checks. This is normal pool behavior: DNS-backed membership is dynamic and the numbered pool names can change hourly. Use the daemon’s pool-aware directive and judge health by synchronisation and reachability, not by expecting permanent server addresses.
The host synchronises, but another machine cannot use it. Client synchronisation does not configure service to downstream clients. Design and secure a separate server role with explicit network permissions and access restrictions.

Operational checks after every change

  1. Confirm that only one NTP implementation is controlling the host.
  2. Confirm that the active configuration contains a pool-aware source and a persistent drift-file directive.
  3. Restart the correct service unit after saving the file.
  4. Run the implementation’s query tool: chronyc tracking and chronyc sources -v for chrony, or ntpq -pn for ntpd.
  5. Confirm that at least one source is selected and reachable, then watch the reported offset become small and stable.
  6. After a reboot, repeat the query and verify that the daemon starts automatically and the hardware clock is being maintained when rtcsync is supported and enabled.

Keep the configuration under change control, record which daemon and pool zone are in use, and retain the output from a successful verification. That record makes later troubleshooting faster when a distribution upgrade changes package defaults, service names or configuration locations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended configuration at a glance

Chrony

pool pool.ntp.org iburst
driftfile /var/lib/chrony/drift
makestep 1 3
rtcsync

Restart the distribution’s chrony service and verify with chronyc tracking and chronyc sources -v.

Current ntpd

driftfile /var/lib/ntp/ntp.drift
pool pool.ntp.org iburst

Use this form when the installed ntpd is version 4.2.7 or later and supports the improved pool implementation. Restart ntpd and verify with ntpq -pn.

Older ntpd compatibility form

driftfile /var/lib/ntp/ntp.drift
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org

Use the numbered lines when the installed ntpd lacks the improved pool directive. The names resolve to changing random server sets, so permanent addresses should not be expected.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.