getaddrinfo() sends DNS requests twice for a CNAME

Solution Verified - Updated -

Issue

  • When the attribute of the obtained name is CNAME when the getaddrinfo() executes the name resolution, getaddrinfo inquires the same name again. This phenomenon occurs in RHEL6 according to the following article.

    https://rhn.redhat.com/errata/RHBA-2013-0279.html
    https://bugzilla.redhat.com/show_bug.cgi?id=837695
    http://sourceware.org/bugzilla/show_bug.cgi?id=14307

  • Is the phenomenon of the above-mentioned article generated in not only RHEL6 but also RHEL5?

    • Was this phenomenon caused by a bug of glibc?

Environment

  • Red Hat Enterprise Linux 5 Update 4
  • Package Version: glibc-2.5-42

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.