public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/14966] New: getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost"
@ 2012-12-16 15:51 psimerda at redhat dot com
  2012-12-16 15:56 ` [Bug network/14966] " psimerda at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: psimerda at redhat dot com @ 2012-12-16 15:51 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14966

             Bug #: 14966
           Summary: getaddrinfo() with AI_ADDRCONFIG may fail to properly
                    resolve /etc/hosts names, e.g. "localhost"
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
        AssignedTo: unassigned@sourceware.org
        ReportedBy: psimerda@redhat.com
    Classification: Unclassified


>From upstream bug reports:

https://bugzilla.redhat.com/show_bug.cgi?id=887577
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/583278

--

Pavel Simerda 2012-12-16 09:25:03 EST

AI_ADDRCONFIG may cause getaddrinfo() to filter out IPv4 or IPv6 addresses,
depending on the network configuration. Detailed info here:

https://fedoraproject.org/wiki/Networking/NameResolution/ADDRCONFIG

Related Fedora bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=721350

--

Related upstream bug report:

http://sourceware.org/bugzilla/show_bug.cgi?id=12398

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug network/14966] getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost"
  2012-12-16 15:51 [Bug network/14966] New: getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost" psimerda at redhat dot com
@ 2012-12-16 15:56 ` psimerda at redhat dot com
  2013-01-22 17:40 ` psimerda at redhat dot com
  2014-06-14  5:33 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: psimerda at redhat dot com @ 2012-12-16 15:56 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14966

--- Comment #1 from Pavel Šimerda <psimerda at redhat dot com> 2012-12-16 15:56:05 UTC ---
> AI_ADDRCONFIG may cause getaddrinfo() to filter out IPv4 or IPv6 addresses,
> depending on the network configuration. Detailed info here:

Of course I meant addresses from /etc/hosts.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug network/14966] getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost"
  2012-12-16 15:51 [Bug network/14966] New: getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost" psimerda at redhat dot com
  2012-12-16 15:56 ` [Bug network/14966] " psimerda at redhat dot com
@ 2013-01-22 17:40 ` psimerda at redhat dot com
  2014-06-14  5:33 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: psimerda at redhat dot com @ 2013-01-22 17:40 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14966

--- Comment #2 from Pavel Šimerda <psimerda at redhat dot com> 2013-01-22 17:39:50 UTC ---
In many cases, having localhost point to both IPv4 and IPv6 addesses can serve
as a workaround:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
...

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug network/14966] getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost"
  2012-12-16 15:51 [Bug network/14966] New: getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost" psimerda at redhat dot com
  2012-12-16 15:56 ` [Bug network/14966] " psimerda at redhat dot com
  2013-01-22 17:40 ` psimerda at redhat dot com
@ 2014-06-14  5:33 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-14  5:33 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14966

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-14  5:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-16 15:51 [Bug network/14966] New: getaddrinfo() with AI_ADDRCONFIG may fail to properly resolve /etc/hosts names, e.g. "localhost" psimerda at redhat dot com
2012-12-16 15:56 ` [Bug network/14966] " psimerda at redhat dot com
2013-01-22 17:40 ` psimerda at redhat dot com
2014-06-14  5:33 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).