Use NTP pool servers

Selecting pool servers is up to you. If you use NTP pool servers, ntp.org recommends you use pool servers that are close to your servers’ time zone as discussed on the NTP pool project page. If you have a private NTP server that is available to all hosts in your deployment, you can use that server instead.

  1. Open /etc/ntp.conf in a text editor.

  2. Look for lines similar to the following:

    server 0.centos.pool.ntp.org
    server 1.centos.pool.ntp.org
    server 2.centos.pool.ntp.org
    
  3. Replace those lines or add additional lines that specify your NTP pool server or other NTP servers. It’s a good idea to specify more than one.

  4. An example of using three United States-based NTP servers follows:

    server 0.us.pool.ntp.org
    server 1.us.pool.ntp.org
    server 2.us.pool.ntp.org
    
  5. Save your changes to /etc/ntp.conf and exit the text editor.

  6. Restart the service.

    • Ubuntu: service ntp restart

    • CentOS: service ntpd restart

  7. Enter date to check the server’s date.

    If the date is incorrect, make sure the NTP client port (typically, UDP 123) is open in your firewall.

    Try the ntpdate _[pool server hostname]_ command. If it fails, search for the error it returns.

    If all else fails, try rebooting the server.