getent hosts does not resolve hostnames with ipv6
getent.c uses gethostbyname and does not try look hostnames with ipv6. we should refactor it to use getaddrinfo.
#1 Updated by Timo Teräs about 2 years ago
getent is infact working as specified in man pages:
If anything is done, we should add support for the ahosts* lookup types that uses getaddrinfo(). I believe hosts lookup is specified to use gethostbyname because it returns the 'alias name' list not available via getaddrinfo().