X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=w480P1e+kFOsQ+bwCMYdBiNtrhaemXmuVZQdJwnaUXnjS1Xmy4ukH nPjLEmuv3T4BQdACevkFpozj5qqHQMgiPM6w14ObO1dvsFqr/9Jz1wJzDqujKvVF 9Gnt/z38+a+LKqu1ZkIL5xdIAoSmCgWMPwtQy3ugyrHbhenI2TEmqw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=qAyKmKX44odvERr3rpJzq9ZZgDM=; b=j+UB+bEJIfXOqd96aS2qqZ0NXRVU QV0VFnPKjIgB8wGRrH8Rt2MYkYLm8Ozm56OuwAIQUzDc2Wtkj7SvHnPXGgOY5gqG rQp8PnSnB32pjT0/T+17mClwTU6wMudJVLuZyCOYcc3TVO4LkaxwLqhrcHKiiCQm 4JiO6reOBLcbN7U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-93.9 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=vista, Vista, HX-Envelope-From:sk:corinna, Jun-ya X-HELO: calimero.vinschen.de Date: Mon, 14 Mar 2016 10:54:59 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Cygwin unable to resolve hostnames Message-ID: <20160314095459.GA20256@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20160314 DOT 093450 DOT 1409197428128437086 DOT kato AT vanilla DOT ocn DOT ne DOT jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <20160314.093450.1409197428128437086.kato@vanilla.ocn.ne.jp> User-Agent: Mutt/1.5.24 (2015-08-30) --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 14 09:34, Jun-ya Kato wrote: > It also depends on AAAA query againt VMware's DNS proxy server. >=20 > For more analysis, see vmware community site, > https://communities.vmware.com/thread/518949?start=3D15&tstart=3D0 >=20 >=20 > 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 --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW5opyAAoJEPU2Bp2uRE+gbsEP/jvyUgsC9rP+xVGsf8wQhR3c fWS3BpjSnPMSGo6HQktSM2XcPBTXMWlinwsvdb1CbPm2xyUY63V58/USsLFgzwd2 v1pwzxxZsFOFACQBUVhHqHUuNp/95SVfXQVkrHbUUrzmaHpILeXhzmGLHdyaHlLY 5zuhq5Pabwc7lV7LjcyhOrinzvYkSdVKp+kHglQrsWazAkZLYm0LijoPG7ibx8fy bEK0jQwNhMbp6SMxljlviuXZJucaSBetEYEXnyk49qLWIVesC0G2Y44/QxKdTzeA 0BZ5BobiXQ/Vlk5mIwoQnFAY1/LOHCiy3rT2atZmYFZjhdoK9PVFUWf2gJKKFMN9 8Sr1EwzwvvAjdM1gJgwn77c5aItSJ7e2629JlCI7JLvsyDYHbGtGciaoqwSAQ5ve tCyxRBsA7cuUmS3SlqOo3K6m8sV0QgpLu4//ZvdLt31c3aEXpUOArBDdxkEhQtXU YVizM4A3s/coepruOe8ClpqNWovhy0LgRZtcBb3iq4yDkZmTKGWraJVgMaIwUy5I zvKOz0nHBN29kl3Uww9iKBCMwjQrIq14WojXj0He1+J7y3TRMQ60lD1Q+LL4cqSN wFsbz+99m6D6SShmq3Js4unULJVkk554FyosZ4+PQm0gFUG8Qw3qpfeh9iTh7xMl auKkfZfsqV1BDF7c1syR =npYU -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--