Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NTP Server Synchronizing with the incorrect NTP server

17 views
Skip to first unread message

jhun...@gmail.com

unread,
Jun 8, 2013, 10:42:20 PM6/8/13
to
Problem:

I configured my NTP server in Linux to use the US Pool of NTP Servers in /etc/ntp.conf. I restarted the NTP service many times and the actual server many times, but it was not using the pool. I was verifying this by using the ntpq -p command. It was using a time server it picked up via DHCP when it was plugged into a completely different network. I had no idea where it was getting this information.

Solution:

After running strace (strace /etc/init.d/ntp restart) I was able to see it was picking up the configuration from /var/lib/ntp/ntp.conf.dhcp .

I deleted /var/lib/ntp/ntp.conf.dhcp, restarted NTP (/etc/init.d/ntp restart) and it synchronizes with the servers configured in /etc/ntp.conf now.

Doug Calvert

unread,
Jun 9, 2013, 2:17:25 AM6/9/13
to
You are on deb/ubu i take it. You need to edit /etc/dhcp/dhclient.conf
and remove ntp-servers from the dhcp request.

Its sily the way they have it. it should be a flag in /etc/default
> _______________________________________________
> questions mailing list
> ques...@lists.ntp.org
> http://lists.ntp.org/listinfo/questions
0 new messages