From owner-freebsd-questions Sat Oct 10 16:32:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA15470 for freebsd-questions-outgoing; Sat, 10 Oct 1998 16:32:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA15458 for ; Sat, 10 Oct 1998 16:32:56 -0700 (PDT) (envelope-from dkelly@n4hhe.ampr.org) Received: from nospam.hiwaay.net (tnt3-247.HiWAAY.net [208.147.146.247]) by mail.HiWAAY.net (8.9.0/8.9.0) with ESMTP id SAA22650; Sat, 10 Oct 1998 18:32:45 -0500 (CDT) Received: from n4hhe.ampr.org (localhost.ampr.org [127.0.0.1]) by nospam.hiwaay.net (8.8.8/8.8.8) with ESMTP id SAA29513; Sat, 10 Oct 1998 18:02:11 -0500 (CDT) (envelope-from dkelly@n4hhe.ampr.org) Message-Id: <199810102302.SAA29513@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: Jim Cassata cc: questions@FreeBSD.ORG From: David Kelly Subject: Re: xntpd In-reply-to: Message from Jim Cassata of "Sat, 10 Oct 1998 17:49:51 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Oct 1998 18:02:10 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (moved to -questions) Jim Cassata writes: > > Is anyone using this or a better way to keep server clocks in sync? > It doesn't seem to do anything, 4 servers all running xntpd with a > /etc/ntp.conf (as per the man pages) as follows: > > server 128.173.14.71 > driftfile /etc/ntp.drift > > and there is a writable driftfile that never gets written to. According to > the complete FreeBSD book, the driftfile's presence in the conf file tells > xntpd to get the time from the server, and it's absence tells it to get > the time from listening to ntp broadcasts. That's essentially what I have in my /etc/ntp.conf. The big difference is that I list servers by name, not IP address as their actual IP addresses tend to change. Also I list 4 servers. If you are on a part time dialup link you should not start xntpd from /etc/rc.conf, but manually (as root) during your first dialup. What does "ntpq -c peers" say? n4hhe: {681} ntpq -c peers remote refid st t when poll reach delay offset disp ============================================================================== 130.199.128.184 130.199.112.138 3 - 39m 64 0 247.39 -1686.6 16000.0 fly.hiwaay.net 192.5.41.40 16 - 107m 64 0 164.61 -1691.2 16000.0 128.249.2.2 134.131.68.73 3 - 46m 64 0 229.23 -1680.7 16000.0 128.194.103.35 128.194.177.1 3 - 41m 64 0 238.59 -1701.1 16000.0 n4hhe: {682} ls -l /etc/ntp* -rw-r--r-- 1 root wheel 701 Mar 22 1998 /etc/ntp.conf -rw-rw-r-- 1 root wheel 9 Oct 10 17:09 /etc/ntp.drift n4hhe: {683} I'm not connected right now so DNS isn't mapping numbers to names. Don't know why my ntp.drift changed at 17:09 as xntpd was not connected to the net in the past 18 hours. Altho it was connected at 17:15. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message