From owner-freebsd-stable@FreeBSD.ORG Thu Oct 16 08:27:46 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7D2416A4B3 for ; Thu, 16 Oct 2003 08:27:46 -0700 (PDT) Received: from adsl-208-189-15-93.flagandbanner.com (adsl-208-189-15-93.flagandbanner.com [208.189.15.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id C754643FB1 for ; Thu, 16 Oct 2003 08:27:44 -0700 (PDT) (envelope-from joe@osoft.us) Received: from osoft.us (itdevel.internal.flagandbanner.com [10.1.0.184]) by adsl-208-189-15-93.flagandbanner.com (Postfix) with ESMTP id D70C718F0; Thu, 16 Oct 2003 10:27:43 -0500 (CDT) Message-ID: <3F8EB8B9.9080801@osoft.us> Date: Thu, 16 Oct 2003 10:26:49 -0500 From: Joe Koberg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "G. Panula" References: <20031016115646.6cfd6404.tarkhil@webmail.sub.ru> <3F8E9CA6.4080502@lexisnexis.com> In-Reply-To: <3F8E9CA6.4080502@lexisnexis.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Finding NTP servers, Re: 5.1 RELEASE: clock running wild? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 15:27:46 -0000 G. Panula wrote: > Alex Povolotsky wrote: >> >> After upgrading to 5.1-Release I've mentioned that clock on server is >> running wild (about twice faster than all other world). I am not sure >> >> What can I do besides downgrading back? > > Run ntpd. Pretty much just need two files; /etc/ntp.conf and > /etc/ntp.drift. > ... > Your local ISP should have an ntp server that you can get the correct > time from. Otherwise there is a list of public stratum 2 ntp servers > available at: http://www.eecis.udel.edu/~mills/ntp/clock2a.html There is a better way to find NTP servers these days: A. Quick and Dirty 1. Add 3 separate "server pool.ntp.org maxpoll 12" lines to ntp.conf. Restart NTP. You're finished. B. To find better NTP servers 1. nslookup pool.ntp.org, which returns many addresses. 2. add up to 20 addresses returned as "server xxx" lines to your ntp.conf 3. Let NTP run for a few hours/days 4. use ntpq(8) "peers" command to show the status of all those servers. 5. Remove the servers that don't have a +, -, or * next to their name from the config file. Restart NTP. This process uses NTP's built-in clock selection algorithm to find the best servers for your connection. There are currently over 80 public servers in the pool. You may want to try .pool.ntp.org, such as "us.pool.ntp.org". However not all countries are represented yet. More info about pool.ntp.org: http://fortytwo.ch/time/ Joe Koberg joe at osoft dot us