Project

General

Profile

Bug #6590

getent hosts does not resolve hostnames with ipv6

Added by Natanael Copa over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
12/27/2016
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

getent.c uses gethostbyname and does not try look hostnames with ipv6. we should refactor it to use getaddrinfo.

Associated revisions

Revision 89a718d8 (diff)
Added by Timo Teräs over 2 years ago

main/musl: upstream fixes, and add ipv6 features to getent

fixes #6590

Revision 2e449388 (diff)
Added by Timo Teräs about 2 years ago

main/musl: upstream fixes, and add ipv6 features to getent

fixes #6590

(cherry picked from commit 89a718d88ec7466e721f3bbe9ede5ffe58061d78)

History

#1 Updated by Timo Teräs over 2 years ago

getent is infact working as specified in man pages:
http://man7.org/linux/man-pages/man1/getent.1.html

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().

#2 Updated by Timo Teräs over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by Natanael Copa about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF