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://access.redhat.com/errata/RHBA-2013:0279
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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content