[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#113543: marked as done (getent doesn't list ipv6 entries when not given a key)



Your message dated Thu, 8 Feb 2007 10:31:04 +0100
with message-id <20070208093104.GA3477@mad.intersec.eu>
and subject line getent doesn't list ipv6 entries when not given a key
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libc6
Version: 2.2.4-1

adam@doogie2:~$ getent hosts|grep ::
adam@doogie2:~$ getent hosts ::1
::1             ip6-localhost ip6-loopback

getent doesn't enumerate the ipv6 entries in /etc/hosts when not given a key.
It should list all entries.




--- End Message ---
--- Begin Message ---
On Tue, Sep 25, 2001 at 10:16:52PM -0500, Adam Heath wrote:
> Package: libc6
> Version: 2.2.4-1
> 
> adam@doogie2:~$ getent hosts|grep ::
> adam@doogie2:~$ getent hosts ::1
> ::1             ip6-localhost ip6-loopback
> 
> getent doesn't enumerate the ipv6 entries in /etc/hosts when not given a key.
> It should list all entries.

  If you really want that, you have to set RES_USE_INET6 in _res.options
which is done either puting 'options inet6' in your /etc/resolv.conf
system-wide or just doing:

  RES_OPTIONS=inet6 getent hosts

  Beware about the fact that this will map ipv4 addresses onto the ipv6
world:

[madcoder mad] RES_OPTIONS=inet6 getent hosts
::ffff:127.0.0.1   localhost ......
::1             ip6-localhost ip6-loopback
fe00::          ip6-localnet
...


-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpbUq769mPAq.pgp
Description: PGP signature


--- End Message ---

Reply to: