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
>> AI_NUMERICHOST.
> 
> 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
_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to