From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112012 invoked by alias); 15 Mar 2016 01:17:07 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111990 invoked by uid 89); 15 Mar 2016 01:17:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=vista, Vista, Jun-ya, junya X-HELO: mail-pf0-f181.google.com Received: from mail-pf0-f181.google.com (HELO mail-pf0-f181.google.com) (209.85.192.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 15 Mar 2016 01:16:56 +0000 Received: by mail-pf0-f181.google.com with SMTP id n5so4210689pfn.2 for ; Mon, 14 Mar 2016 18:16:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:message-id:to:subject:from:in-reply-to :references:mime-version:content-transfer-encoding; bh=ag/pFWS0BcD1LcyiV2dL2XLlvcONHmhBPHje4+2Yiy0=; b=Q4bWw2GqZ/gNLvzs5h0o/jFpIxMFbkrzZbHxk21YEbiKaLMT86WnfEcwaAj1Dhw9kc fsAhExct6Roqeibi+UclVFboJqfwCrd8WDahmtvsn6Luobyyw1ZbcNPRY5XzbZdCdsOw 7aCRboj52T1AJm4EowI3Kj9O9Dh1ir/AxjCMMZyZsefmledv1zhwZQ4qmAdRgfh2aANU 4Fh44UhHf+VbUEPiqSLEk3AXDRG2UvCTIi8KWQXYwQxc7XR1RdCMxPgQ+dEUsRWJo8Ic Nf+2e6IslF3EfMgUOQIcpBQwrE2RJkGPNTt9mIL1Vc5Ke1Vb3L4kR4FzWCTU03zY0pQI WEQQ== X-Gm-Message-State: AD7BkJLmK0LpC6y1/Y23mLIF/hPGq47Ca/qrSCvtNLLGrmwnnnxrEzIwchbDz1XWBFdn2g== X-Received: by 10.98.44.73 with SMTP id s70mr34573729pfs.2.1458004614292; Mon, 14 Mar 2016 18:16:54 -0700 (PDT) Received: from localhost (pl3438.nas826.p-tokyo.nttpc.ne.jp. [219.102.69.110]) by smtp.gmail.com with ESMTPSA id l14sm34887709pfi.23.2016.03.14.18.16.52 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2016 18:16:53 -0700 (PDT) Date: Tue, 15 Mar 2016 01:17:00 -0000 Message-Id: <20160315.101651.626351874531260985.kato@vanilla.ocn.ne.jp> To: cygwin@cygwin.com Subject: Re: Cygwin unable to resolve hostnames From: Jun-ya Kato In-Reply-To: <20160314095459.GA20256@calimero.vinschen.de> References: <20160314.093450.1409197428128437086.kato@vanilla.ocn.ne.jp> <20160314095459.GA20256@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00227.txt.bz2 > Is anybody here affected by this problem willing to give this a test? > I can create another Cygwin 2.5.0 test release pretty soon... I think it's useful workaround for cygwin user under VMware NAT. I'd like to test it. From: Corinna Vinschen Subject: Re: Cygwin unable to resolve hostnames Date: Mon, 14 Mar 2016 10:54:59 +0100 > On Mar 14 09:34, Jun-ya Kato wrote: >> It also depends on AAAA query againt VMware's DNS proxy server. >> >> For more analysis, see vmware community site, >> https://communities.vmware.com/thread/518949?start=15&tstart=0 >> >> >> I think it is not cygwin's bug at all. but any workaround may be >> implemented againt weak behavior of GetAddrInfoW() API. > > As mentioned in the above posting, Cygwin always sets AI_ALL if > ai_family is PF_UNSPEC and the hints don't specify AI_ADDRCONFIG. > > Apparently Winsock's GetAddrInfoW chokes on AI_ALL in certain > circumstances. On GLibc, AI_ALL is ignored if AI_V4MAPPED is not given, > but that's not as I observed it on Windows when I added this code > (back in Vista times, but hey). > > There's an easy workaround possible: If GetAddrInfoW returns the > error code WSANO_RECOVERY (per the above posting), we can retry > without the AI_ALL flag. > > Is anybody here affected by this problem willing to give this a test? > I can create another Cygwin 2.5.0 test release pretty soon... > > > Thanks, > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Maintainer cygwin AT cygwin DOT com > Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple