[EMAIL PROTECTED] (Danny Mayer) wrote: > What the code DOES do and should not do is the following: > > a) try and convert the refid into an intenet name for the address, ie a > DNS lookup; > b) if that fails and the length of the refid data is <= 4 assume it's a > refclock code (like GPS) and surrounds it with dots. > > It's a) which causes the problem and is completely unnecessary.
But a) shouldn't do that: decodenetnum() calling getaddrinfo() with AI_NUMERICHOST is effectively just a check that it is a syntactically valid IP address -- there should be no DNS lookups generated. The original query seems to have come from someone with a broken OS, or perhaps using a different version of ntpq. -- Ronan Flood <[EMAIL PROTECTED]> _______________________________________________ questions mailing list [email protected] https://lists.ntp.isc.org/mailman/listinfo/questions
