On Sat, Aug 20, 2005 at 01:46:35PM -0500, Graham Wilson wrote: > On Sat, Apr 16, 2005 at 02:39:52AM +0200, Jeremie Koenig wrote: > > This new patch fixes this, and relies on the resolver configuration to > > choose the address family used by gethostbyname, which is better imho, > > and doesn't make use of the gethostbyname2, which is a GNU extension. > > Is this patch your most preferred solution to the problem?
-4/-6 options could be added to hostname later, but I think hostname should rely on the resolver configuration for its default behavior anyway, so this patch would be a good starting point in any case. I'm running hostname with this patch applied for some time, and haven't had any problem so far. I abandoned the inet6 option some time ago, however, since many programs are broken, assuming gethostbyname would return IPv4 addresses only, and I got tired at some point. -- Jeremie Koenig <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]