How to join your Linux server to the NTP pool project

This tutorial explains how to configure a NTP (Network Time Protocol) server (using ntpd) and join it to the continuously more demanded NTP pool project.

Because time synchronization services are simple and important for our digital civilization, this tutorial invites you to setup your servers for joining the NTP pool project, so that you contribute to keep millions of digital transactions working properly.

Install the Network Time Protocol daemon

This package should have the same name in all linux distributions.

Arch based systems

pacman -S ntp

Debian based systems

apt-get install ntp

Red Hat based systems

dnf install ntp
yum install ntp

SUSE based systems

zypper install ntp

Configure the Network Time Protocol daemon

Before you decide to join your servers to the NTP pool project, please read this carefully:

If you agree with the text provided in the last link, then it is moment to choose at least three NTP servers your servers will synchronize with.

Please consider that the closer the servers are, the more accurate the time of your servers should be.

It is also recommended to choose servers located in opposite directions, as a strategy against failures of the same fiber optic or copper cables that provide linkage between the servers.

Choose static NTP servers

You may use these stratum 2 NTP servers:

You may pick servers of the pool randomly:

You may replace de with your country code

You may search for additional servers here:


Query for AAAA and A records

Once you know which servers you want to use, it is moment to know their public IP address. It is preferably that they have IPv6 connectivity.

You may use the linux command dig:

dig ANY
;; ANSWER SECTION: 26652 IN AAAA 2a02:c207:2010:9464::1 26652 IN A

Or this online app

;ANSWER 86399 IN AAAA 2a02:c207:2010:9464::1 86399 IN A

Edit /etc/ntpd.conf file

Once you know the IPv6 and IPv4 addresses of the servers you chose, then copy and paste the below content to /etc/ntpd.conf replacing the bolded addresses accordingly.

driftfile /var/lib/ntp/ntp.drift
restrict default kod nomodify nopeer noquery notrap
restrict localhost
server 2001:4ca0:0:103::81bb:fe20
server 2001:638:a000:1123:123::1
server 2001:62a:4:311::123

Restart the Network Time Protocol daemon

Once ntpd was configured, it is moment to load the new configuration file.

init.d based init system (e.g: upstart, sysvinit)

service ntp restart

systemd as init system

systemctl restart ntp

Add web service redirect (optional)

In case your new NTP server is running web services as well, you may want to redirect web queries to the correct site. For example in apache you should add this virtual host:

Using mod_alias

<VirtualHost *:80>
ServerAlias * *
Redirect permanent /

Using mod_rewrite

<VirtualHost *:80>
ServerAlias * *
RewriteRule ^{REQUEST_URI} [R=301,L]

Join the NTP pool project

Finally, in order to join your servers to the NTP pool project, just follow these steps:

  1. Go to
  2. Sign up (in case you do not have an account).
  3. Log in.
  4. Write the hostname of your new NTP server or one of its IPv4 / IPv6 static addresses.
  5. Click on the submit button.

Hopefully you can provide at least one IPv4 static address and one IPv6 static address for each server.

Sometimes you have to wait few minutes until ntpd stabilizes the real time clock.

In case it asks for the physical location of your NTP server you only have to provide the country where it is located.

Once it appears in Your Servers list, you might want to handle the amount of traffic it serves, defining their net speed.

For OpenVZ virtual servers it is recommended, that you choose around 10MBit, since the server might be shutdown, because each OpenVZ instance usually supports a low amount of simultaneously network connections.

For physical and KVM servers you may select the highest available connection speed, even if your connection speed is lower than it.

As a reference data: the amount of traffic served by our NTP servers with a chosen net speed of 1000MBit is around 40 Kb/s downstream and 40 Kb/s upstream.

Leave a Reply

Your email address will not be published.