This is the mail archive of the
mailing list for the glibc project.
Re: gethostbyname() triggering duplicate DNS A queries when CNAMEresponse is received
On 29 June 2012 11:27, Jeroen van Bemmel <email@example.com> wrote:
> Could it be that the structure / alignment of fields in addrinfo differs between the caller and callee (libc) ? I should note that I am using an x86_64 platform...Hmmm
> I then compiled your modified program using "-m32" to generate a 32-bit program, and... voila, issue solved!
> So, there is an issue with getaddrinfo() when used in x86_64 programs -> with the 64-bit library versions of glibc
Thanks, I was going to ask you to file a bug report because this does
look like a bug, but I see you have already done that:
This seems to occur only with specific host lookups (google.com and
www.gmail.com) and not others (gmail.com, google.co.in, yahoo.com,
etc). It doesn't seem related to CNAME either since the google.com
lookup does not return a CNAME.