[PATCH] Don't use gethostbyaddr to determine canonical name

Ulrich Drepper drepper@gmail.com
Mon Jul 4 21:54:00 GMT 2011


On Fri, Jun 24, 2011 at 03:49, Andreas Schwab <schwab@redhat.com> wrote:
> $ getent ahosts www.google.de | head -1
> 2a00:1450:8007::6a STREAM www.l.google.com
> $ getent ahostsv4 www.google.de | head -1
> 74.125.39.106   STREAM fx-in-f106.1e100.net

I cannot reproduce this.  Must have been on IPv6-day!?

What is the exact situation?  The patch isn't correct.  If anything is
wrong then it might be that we need to use the gethostbyname-based
implementation in even fewer situations or the getcanon implementation
has a problem.

The 1e100.net address obviously also belongs to Google.  Therefore I'm
not really sure there is a problem.  They might have directed IPv4 and
IPv6 traffic to completely different machines.



More information about the Libc-hacker mailing list