← Back to team overview

touch-packages team mailing list archive

[Bug 1057526] Re: getaddrinfo returns PTR name in ai_canonname when using DNS

 

This bug was fixed in the package eglibc - 2.15-0ubuntu10.12

---------------
eglibc (2.15-0ubuntu10.12) precise; urgency=medium

  * cvs-vfprintf-multibyte.diff: Fix "memory exhausted" bug in who, by no
    longer parsing %s format arguments as multibyte strings (LP: #1109327)
  * cvs-__SSE_MATH__-feraiseexcept.diff: Check for __SSE_MATH__ in x86_64
    feraiseexcept to fix backported -m32 builds of GCC 4.8 (LP: #1165387)
  * cvs-canonical-name.diff: Don't incorrectly do a PTR lookup when asked
    to do a canonical lookup for a host using AI_CANONNAME (LP: #1057526)
  * cvs-atomic-fastbins.diff: Fix race in free() of fastbin (LP: #1020210)
 -- Adam Conrad <adconrad@xxxxxxxxxx>   Wed, 25 Mar 2015 13:28:41 -0600

** Changed in: eglibc (Ubuntu Precise)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1057526

Title:
  getaddrinfo returns PTR name in ai_canonname when using DNS

Status in Embedded GLIBC:
  Fix Released
Status in eglibc package in Ubuntu:
  Fix Released
Status in eglibc source package in Precise:
  Fix Released
Status in eglibc package in Debian:
  Fix Released
Status in eglibc package in Fedora:
  Unknown

Bug description:
  Got pinged about this, not fixed in 12.04 yet. From the Redhat bug:

  "We have verified that getaddrinfo() does reverse address calls to DNS
  when AI_CANONNAME is passed in hints.ai_flags and returns the PTR name
  of the forward resolved ip address as Canonical name.

  The canonical name is arguably not what is returned by the PTR record
  for various reasons. Aside the fact that PTR record are often not
  under control of the the same people that control the A name, A names
  can also be roundrobin names and return multiple addresses. Picking
  one and returnings its PTR as canonical name seem highly questionable.

  A CNAME -> A name resolution is welcome as the A name is arguably the
  Canonical name of a CNAME. But getaddrinfo shouldn't do PTR requests
  to the DNS.

  We found this when testing ssh+GSSAPI auth on laptops that can properly set the A record for their name usin dynamic DNS updates but cannot change the PTR record of whatever network they are currently travelling in.
  This breaks kerberos which needs the canonical (A record) name to construct the principal name used to request a ticket when rdns = false is set in krb5.conf and GSSAPITrustDNS is set to no in ssh (the default)."

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1057526/+subscriptions