delorie.com/archives/browse.cgi | search |
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=AN5usYo0TyjiYPVFOA1kAjflK8ooiHJpHBG5IfJ43K9hD6TyFkGig | |
tgyQqCT0cTs6QjimizyM4KrQvB7dlRJPzYo4ZlnWuPyBcopPAhwuJ1znbdHbZYg2 | |
cPhL0SV1UsoWNLiNzwxJJPZW/TsfBL+O+e3BWcnlh0RrXfvAEz4O5A= | |
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=FUh7B01OZd2hcPydmc3yj+lWkTg=; b=HX13wT1VKvaJRAgQwHnDMM5wdBXM | |
JrNZaA0YJ79KRE5snAQ1KWZxoDAcY5QBxIIM13L9NHaTRjN3JfD1VDkopY6mxwIJ | |
T3FAaHFXzHaGQpo8JkvXcsTea3h2wExD4IGEnRkXEtq3R42RrHFPQ72s4qm2yuo6 | |
b5szKSLxj16E1qk= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-101.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=Maintainer, DOT, 0x80000, inglis |
X-HELO: | calimero.vinschen.de |
Date: | Fri, 8 Jan 2016 12:14:08 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: getaddrinfo fails with EAI_NODATA for some valid hosts with A records |
Message-ID: | <20160108111408.GH20447@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <loom DOT 20160107T163448-78 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20160107T163448-78@post.gmane.org> |
User-Agent: | Mutt/1.5.24 (2015-08-30) |
--CNfT9TXqV7nd4cfk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Brian, On Jan 7 15:39, Brian Inglis wrote: > getaddrinfo fails with err 7 EAI_NODATA for some valid hosts with A recor= ds.=20 > Err 7 EAI_NODATA is mapped from WSANO_DATA err 11004 in Windows. > Can anyone reproduce failure with problem host name below?=20 Yes, I can reproduce it, and it's a total surprise. In fact, this is *not* a Cygwin problem. I created an STC, a simple mingw application, very certainly not using Cygwin at all: $ cat gai.c #define _WIN32_WINNT 0x0a00 #include <ws2tcpip.h> #include <windows.h> #include <stdio.h> #ifndef AI_DISABLE_IDN_ENCODING #define AI_DISABLE_IDN_ENCODING 0x80000 #endif int main (int argc, char **argv) { WSADATA wsadata; struct addrinfo hint, *res; int ret; WSAStartup (MAKEWORD(2,2), &wsadata); memset (&hint, 0, sizeof hint); hint.ai_flags =3D 0;//AI_V4MAPPED | AI_ADDRCONFIG | AI_CANONNAME | AI_DIS= ABLE_IDN_ENCODING; hint.ai_family =3D 0;//AF_INET; ret =3D getaddrinfo (argv[1], NULL, &hint, &res); printf ("ret =3D %d\n", ret); } $ x86_64-w64-mingw32-gcc -g -o gai gai.c -lws2_32 $ ./gai cygwin.org ret =3D 0 $ ./gai www.sun.de ret =3D 0 $ ./gai leapsecond.utcd.org ret =3D 11004 I have no idea why Windows' getaddrinfo chokes on leapsecond.utcd.org at all. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --CNfT9TXqV7nd4cfk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWj5oAAAoJEPU2Bp2uRE+gmB4P/iDA4Kk7Eg7mxRxzu1A38yge v6CtMF8c87aUM43jScjN9sIboFjsJDevlxKXyxfDhrlXv7a3Ghxl+QmbACU6b8Qd OJqzeTgDsaf2zI0U/3hAR3HJjvBNxVXJFgBWJFY6vL+LGhJ8W77fufiYGmLxNt6w 18oYZQah+3AK5+7Pk+jmbposCZtnxyzUsEBEIrNwZTpx8P4G+Hi8TvGhPZJUFxCp fJYrk+p/j/oTe74msGCpN0Gjo5g4rECwqsjTYmNZyy++OTjqAXhsGcKDMiaddlFs UDidtk4Gm7QeWx6ZpYe68dnrvbmCgJBY0tEmHayi15YSywE90LO5v3DBwoN1oG08 YsnvjIxyD2ijnNI6aLzobgQ01PJbS3c4y2VAMDrhFGq6TcXsSTDVdpCG+287QtWM pAMGwGeMAbRGG4vBXDodbXPKy4OheD4LOGfvn+ep7OvD/PSXrUrlLlSBdsGTF/08 Q2HMZ4sc4uIciGM1W3uaissLQr9VFD11ngFMeNII2U3TZExrk4uQhqxkpZaOdgJv RXJrPTGR3zuTa00vvGS75nwj4LIsMN5p9YzyzBHPpl3uz4sKJAPkyjrQLw6byALz A5Z0cXiRzbbSaKutX0b/h0sCoF/OSU/loS1b2EhMDgpOP4MSP2CqPK9RQL6+vYYr PBAR1ZybKVw3xP387sjd =2GRZ -----END PGP SIGNATURE----- --CNfT9TXqV7nd4cfk--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |