This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin unable to resolve hostnames
- From: Jun-ya Kato <kato at win6 dot jp>
- To: cygwin at cygwin dot com
- Date: Tue, 15 Mar 2016 10:16:51 +0900 (JST)
- Subject: Re: Cygwin unable to resolve hostnames
- Authentication-results: sourceware.org; auth=none
- References: <CAA05WiY_gwrX=aX2FqzLF0ZeJ4zf0ipNRshCXxOvp+h9MmbENQ at mail dot gmail dot com> <20160314 dot 093450 dot 1409197428128437086 dot kato at vanilla dot ocn dot ne dot jp> <20160314095459 dot GA20256 at calimero dot vinschen dot de>
> 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 <corinna-cygwin@cygwin.com>
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