I notice that if getaddrinfo() fails in ntpq, the printed message is simply the result of gai_strerror() - ie, "%s\n". Should it be: "getaddrinfo() failed: %s\n" instead, or perhaps showing some of the parameters passed to getaddrinfo? H