Hrm. The POSIX getaddrinfo specification is pretty clear about *not* resolving a name for ai_canonname if name is in IP dot notation, yet sometimes the canon-host implemetation does a reverse-lookup to get a canonical name (for some odd condition where gethostbyname fills in the h_name field of the hostent struct with an IP address in dot notation).
Does anyone actually know a system or set of circumstances where gethostbyname might actually return an IP number in dot notation when it is not given an IP number to resolve? There is some old code in CVS that implies that this should not happen, but the code path may be seldom-used since it has to do with Kerberos authentication. Regards, Derek -- Derek R. Price CVS Solutions Architect Ximbiot <http://ximbiot.com> v: +1 717.579.6168 f: +1 717.234.3125 <mailto:[EMAIL PROTECTED]> _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib