[ntp:questions] nptq -p slowness

David J Taylor david-taylor at blueyonder.co.not-this-bit.nor-this-part.uk
Sun Feb 4 07:24:40 UTC 2007

Danny Mayer wrote:
> 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.
> Danny

I reported slowness with ntpq -p  under certain circumstances quite some 
time back.  Bug number 586?


More information about the questions mailing list