From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14767 invoked by alias); 4 Jul 2011 21:54:33 -0000 Received: (qmail 14751 invoked by uid 22791); 4 Jul 2011 21:54:33 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jul 2011 21:54:18 +0000 Received: by vws4 with SMTP id 4so4954529vws.0 for ; Mon, 04 Jul 2011 14:54:17 -0700 (PDT) Received: by 10.220.10.20 with SMTP id n20mr1678537vcn.172.1309816457163; Mon, 04 Jul 2011 14:54:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.118.9 with HTTP; Mon, 4 Jul 2011 14:53:57 -0700 (PDT) In-Reply-To: References: From: Ulrich Drepper Date: Mon, 04 Jul 2011 21:54:00 -0000 Message-ID: Subject: Re: [PATCH] Don't use gethostbyaddr to determine canonical name To: Andreas Schwab Cc: libc-hacker@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00003.txt.bz2 On Fri, Jun 24, 2011 at 03:49, Andreas Schwab 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 =C2=A0 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.