[ntp:questions] Re: How to change timeserver

Danny Mayer mayer at ntp.isc.org
Mon Sep 19 14:00:11 UTC 2005


Tony wrote:
> Hi Johan and Danny,
> 
>    Thank you for the input.  I went searching around for an
> alternate ntp.conf file and did not find one.  So, I renamed
> /etc/ntp.conf and restart ntpd.  Oh did it whine!
> 
>    So I opened /etc/rc.d/init.d/ntpd and looked.  Hmmm.
> I echoed out $ntpconf from the readconf subroutine.  Said
> it was /etc/ntp.conf.  Frustrated, I looked at /etc/ntp.conf
> a few hundred more times.  Then it  occured to me to go back
> /etc/rc.d/init.d/ntpd and check out the start routine.
> 
> Bingo!
> 
>        if [ -s "$ntpstep" -o -n "$dostep" ]; then
>         # Synchronize with servers if step-tickers exists
>         # or the -x option is used
>         echo -n $"$prog: Synchronizing with time server: "
>         /usr/sbin/ntpdate $dropstr -s -b -p 8 \
>                        $tickers 2>/dev/null >/dev/null
> 
> Okay, so tickers is hard coded as ntpstep=/etc/ntp/step-tickers.
> I opened /etc/ntp/step-tickers and modified it to the following:
> 
>       # 0.pool.ntp.org
>       # 1.pool.ntp.org
>       # 2.pool.ntp.org
>       time.nist.gov
>       127.127.1.0
> 

Never use the local clock for ntpdate. You can't synchronize to 
yourself. remove 127.127.1.0.

Danny



More information about the questions mailing list