Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!cs.mu.OZ.AU!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!newsfeeds.sol.net!hunter.premier.net!news.mathworks.com!howland.erols.net!news.sprintlink.net!news-peer.sprintlink.net!news.wwa.com!news.ucdavis.edu!trefoil.bogs.org!greg From: greg@trefoil.bogs.org (Greg Shenaut) Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: xntp/ntpdate woes Date: 21 Jan 1997 14:46:44 GMT Organization: BOGS Research Group Lines: 43 Message-ID: <5c2ksk$727$1@mark.ucdavis.edu> References: <32E48414.337@postmodern.com> Reply-To: gkshenaut@ucdavis.edu NNTP-Posting-Host: bogslab.ucdavis.edu X-Newsreader: TIN [version 1.2 PL2] Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:5660 Michael C. Berch (mcb@postmodern.com) wrote: : I've never gotten either xntp or ntpdate to work for me. I had problems until I tracked down the following example config file on the Net (modify it to fit your situation; BTW, it may not be a bad idea to use only IP addresses rather than hostnames in this file): =# Sample /etc/ntp.conf (adapted from NTP faq) =# =# Uncomment & modify to enable a general SERVER mode =#restrict default notrust nomodify =# =# Uncomment to enable local server mode, replacing NET_ADDRESS =# and NUMERIC_MASK with reasonable local values: =#restrict NET_ADDRESS mask NUMERIC_MASK notrust =# =# Path to a place to record the clock frequency =driftfile /var/log/ntp.drift =# =# The server statement causes polling to be done in client mode =# =# Here are two nearby time sources I can use: =server 111.222.3.444 # aaaaa.bbbbb.cccc =server 222.333.44.55 # bbbbbb.cccccc.dddddd =# Two reliable, busy, servers--comment these out as soon as possible =server 192.5.41.40 # tick.usno.navy.mil at USNO =server 192.5.41.41 # tock.usno.navy.mil at USNO =# =# Uncomment to enable fallback to the local hardware clock =#server 127.127.1.1 =# =# Optional restrictions (uncomment if needed): =# restrict 192.5.41.40 =# restrict 192.5.41.41 =# =# Optional logging commands needed mostly by primary servers =# or main campus servers (uncomment if needed): =statsdir /var/log/ =statistics loopstats clockstats peerstats =filegen peerstats file peerstats type day enable =filegen loopstats file loopstats type day enable =filegen clockstats file clockstats type day enable