blog home

synchronize clock with ntpdate

Posted by William in backend on March 18th, 2009

To get the correct time on your linux machine, try ntpdate command:

sudo ntpdate ntp.nasa.gov

A list of ntp servers on the internet:

server adress Location
ntp.ipv6.viagenie.qc.ca IPV6 ONLY
clock.via.net  
server fartein.ifi.uio.no Norway
server ntp.uio.no Norway
server ntp.eunet.no Norway
ntp.demon.co.uk UK
ntp.nasa.gov USA
bigben.cac.washington.edu USA
time-b.nist.gov USA
montpelier.ilan.caltech.edu USA
nist1.aol-ca.truetime.com USA
nist1.datum.com USA
time-a.timefreq.bldrdoc.gov USA
time-b.timefreq.bldrdoc.gov USA
time-c.timefreq.bldrdoc.gov USA
time.nist.gov USA
utcnist.colorado.edu USA
tick.usno.navy.mil USA
tock.usno.navy.mil USA
mizbeaver.udel.edu USA

You might want to setup this command as a daily cron job to adjust it if it tends to drift often.

Reference: http://linuxreviews.org/howtos/ntp/