[pkg-ntp-maintainers] Bug#439734: Bug#439734: ntp does not support the "dynamic" option in /etc/ntp.conf

Kurt Roeckx kurt at roeckx.be
Mon Aug 27 19:27:52 UTC 2007


On Mon, Aug 27, 2007 at 07:13:41PM +0200, Vincent Lefevre wrote:
> On 2007-08-27 19:04:30 +0200, Kurt Roeckx wrote:
> > I can't remember the report, will look for it later.  But I think the
> > problem only happens if you run a local named.  That would after some
> > time return a permanent error.
> 
> I don't run a local named on this machine.

What I see in the code is:
                case EAI_NONAME:
#ifndef FORCE_DNSRETRY
                        return (0);
#else
                        return (1);
#endif

So that FORCE_DNSRETRY would only help if getaddrinfo() returned
EAI_NONAME.

If I understand it right, ntpd would atleast retry in case of:
- EAI_AGAIN
- EAI_NODATA
- EAI_FAIL
- EAI_SYSTEM

So it must be either an other error code like EAI_NONAME, and I don't
see any other that are likely returned, or something wrong with the
retry code.

I would be useful to find out what errorcode is returned by
getaddrinfo().


Kurt





More information about the pkg-ntp-maintainers mailing list