[PLUG] ntp isn't keeping the clock accurate

Kyle Accardi sandbox at pacifier.com
Fri Apr 11 19:47:01 UTC 2003


Paul Heinlein wrote:
> On 11 Apr 2003, Mike De La Mater wrote:

>>ntpdc> peers
>>     remote           local      st poll reach  delay   offset    disp
>>=======================================================================
>>=time.nist.gov   5.0.0.0         16   64    0 0.00000  0.000000 0.00000
>>=clock.via.net   5.0.0.0         16   64    0 0.00000  0.000000 0.00000
> 
> 
> The '5.0.0.0' local address is the key: ntpd is unable to reach the 
> remote hosts.
> 
> For troubleshooting, make sure
> 
> * you can ping those hosts
> 
> * your client has permission to sync with them:
> 
>   ntpd -q time.nist.gov
>   ntpd -q clock.via.net
> 
> * you don't have a packet filter rule that's blocking ntp traffic
> 
> 
>>Note that /usr/sbin does not appear to be in my path, so I have to
>>enter the ./ to make it run. I'm logged into X as a user, but I su'd
>>to root for this check.

Okay, this spurred me to try again with my setup.  The idea is to have one 
machine sync to the outside, then all others on the lan sync to that one.

For some reason, I cannot reach my server by name--even with an entry in 
/etc/hosts.  My ntp.conf file uses the ip addy anyway, but when I run peers:

ntpdc> peers
      remote           local      st poll reach  delay   offset    disp
=======================================================================
*LOCAL(0)        127.0.0.1       10   64  377 0.00000  0.000000 0.00095
=philo.localdoma 5.0.0.0         16 1024    0 0.00000  0.000000 0.00000

somehow it resolved the name, but as you can see, no connection.

My version of ntpd doesn't have -q, but since I can't do 'host philo', it 
wouldn't work anyway.

Main question: how the hell do you get the machines to resolve by name? 
This used to work until I upgraded one of the machines.  Presumably, my 
gateway router is handling the internal dns stuff, but shouldn't a direct 
entry in /etc/hosts override?

	127.0.0.1	rufus.localdomain	localhost	rufus
	192.168.0.100	philo.localdomain	philo

--
Kyle Accardi





More information about the PLUG mailing list