[ntp:questions] nptq -p slowness

Danny Mayer mayer at ntp.isc.org
Sun Feb 4 05:47:40 UTC 2007

Serge Bets wrote:
>  On Thursday, February 1, 2007 at 0:34:10 +0100, Serge Bets wrote:
>> It seems you are right on the track: My system has no getaddrinfo().
>> So ntpq 4.2.4 uses its own bundled replacement from
>> libntp/ntp_rfc2553.c, which doesn't seem to make use of
> Confirmed: libntp/ntp_rfc2553.c:getaddrinfo() calls do_nodename(), which
> calls DNSlookup_name(), regardless of AI_NUMERICHOST. To confirm it
> experimentaly I made the DNSlookup_name() call conditional. And then
> ntpq -p display becomes normally fast, and DNS logs show no more
> importune A queries. Problem solved: Bravo Ronan, thank you very much,
> and thanks to all contributors. :-)
> Next step is to report this to bugzilla, I suppose. Could anyone suggest
> a proper fix? Mine works as proof but is probably inapropriate:

I put a fix into the code which will have to be rolled into the
repository. We do need a bugzilla report.


More information about the questions mailing list