Bug 436290 - getaddrinfo return only IPv4 Address
Summary: getaddrinfo return only IPv4 Address
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 8
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 436289 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-06 12:23 UTC by Jean-Jacques Sarton
Modified: 2008-03-11 09:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-11 09:11:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jean-Jacques Sarton 2008-03-06 12:23:39 UTC
Description of problem:
If hints.ai_family is set to AF_UNSPEC or if hints is NULL only, no records with
IPv6 (AF_INET6) are returned into the result

Version-Release number of selected component (if applicable):
glibc-2.7-2

How reproducible:
query simply via getaddrinfo, with above settings for host with IPc6 addresses

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
getaddrinfo() shall first look for AAAA records and then for A records.

Additional info:

Comment 1 Jakub Jelinek 2008-03-06 12:41:24 UTC
*** Bug 436289 has been marked as a duplicate of this bug. ***

Comment 2 Jean-Jacques Sarton 2008-03-06 15:51:20 UTC
The file /etc/nsswitch was not OK, it contained only file for the network: entry.
For programs as firefox, ftp, ssh, ... all worked fine as well for external as for
internal addresses,
After inserting of dns after file, all seen to work 


Note You need to log in before you can comment on or make changes to this bug.