From owner-freebsd-questions@FreeBSD.ORG Thu Sep 23 04:37:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22DFF16A4CE for ; Thu, 23 Sep 2004 04:37:27 +0000 (GMT) Received: from auk2.snu.ac.kr (auk2.snu.ac.kr [147.46.100.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB49043D5A for ; Thu, 23 Sep 2004 04:37:26 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk2.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004092313:37:14:325995.29654.2506177456 for ; Thu, 23 Sep 2004 13:37:14 +0900 (KST) Message-ID: <41525304.3000700@yahoo.com> Date: Thu, 23 Sep 2004 13:37:24 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <415197F9.3080901@verizon.net> In-Reply-To: <415197F9.3080901@verizon.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:5.94) (by Terrace) Subject: Re: Ntpd assistance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 04:37:27 -0000 alden.pierre wrote: > /etc/rc.conf contains the following: > > ntpdate_enable="YES" > ntpdate_flags="timex.cs.columbia.edu" > xntpd_enable="YES" # Run ntpd Network Time Protocol > > /etc/ntpd.conf contains the following: > > driftfile /etc/ntp/drift > server 65.211.109.1 > server 65.211.109.11 > server 209.51.161.238 > server 128.59.59.177 Use /etc/ntp.conf (NOT ntpd.conf). I would configure this system as follows: /etc/rc.conf: ntpdate_enable="YES" ntpdate_flags="-b 65.211.109.1 65.211.109.11 209.51.161.238 128.59.59.177" xntpd_enable="YES" /etc/ntp.conf: #-------------------------- # prohibit general access to this service #-------------------------- restrict default ignore #-------------------------- # localhost has full access to the server #-------------------------- restrict 127.0.0.1 #-------------------------- # servers to query #-------------------------- server 65.211.109.1 restrict 65.211.109.1 server 65.211.109.11 restrict 65.211.109.11 server 209.51.161.238 restrict 209.51.161.238 server 128.59.59.177 restrict 128.59.59.177 #-------------------------- # files to use #-------------------------- driftfile /var/db/ntp.drift ------------------------------------------------- The idea is, that, at boot up, you force instant time synchronization with ntpdate, using the list of servers in ntpdate_flags="-b ....". (check the man page of ntpdate and the -b flag). Then you allow ntpd to start (xntpd_enable = "YES"), that will keep the time in sync with the servers in /etc/ntp.conf. As a regular user, verify nptd's sync behaviour with: ntpq -np I hope that helps. Rob.