Bug#303579: hostname: fails to work on IPv6-only hosts

2005-08-23 Thread Graham Wilson
On Sun, Aug 21, 2005 at 01:06:43AM +0200, Jeremie Koenig wrote: -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. Alright, I've applied this

Bug#303579: hostname: fails to work on IPv6-only hosts

2005-08-20 Thread Graham Wilson
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

Bug#303579: hostname: fails to work on IPv6-only hosts

2005-08-20 Thread Jeremie Koenig
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

Bug#303579: hostname: fails to work on IPv6-only hosts

2005-04-15 Thread Jeremie Koenig
On Thu, Apr 07, 2005 at 05:30:26PM +0200, I wrote: Here is a patch which makes hostname try an IPv6 lookup in case the IPv4 one fails. This is needed to make hostname work on IPv6-only hosts. It seems defining 'option inet6' (which I just discovered) in /etc/resolv.conf fixes part of the

Bug#303579: hostname: fails to work on IPv6-only hosts

2005-04-07 Thread Jeremie Koenig
Package: hostname Version: 2.13 Severity: minor Tags: patch Hello, Here is a patch which makes hostname try an IPv6 lookup in case the IPv4 one fails. This is needed to make hostname work on IPv6-only hosts. This is a quick minimal non-instrusive half-fix only. I'd like to implement the