This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: getaddrinfo fails with EAI_NODATA for some valid hosts with A records
- From: "Andy Hall" <fixpertise-consulting at comcast dot net>
- To: <cygwin at cygwin dot com>
- Date: Fri, 8 Jan 2016 12:03:48 -0800
- Subject: RE: getaddrinfo fails with EAI_NODATA for some valid hosts with A records
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20160107T163448-78 at post dot gmane dot org> <20160108111408 dot GH20447 at calimero dot vinschen dot de> <5690039E dot 6000704 at gmail dot com> <20160108185205 dot GL20447 at calimero dot vinschen dot de>
>
> On Jan 8 13:44, cyg Simple wrote:
> > On 1/8/2016 6:14 AM, Corinna Vinschen wrote:
> > > $ ./gai leapsecond.utcd.org
> > > ret = 11004
> > >
> > > I have no idea why Windows' getaddrinfo chokes on leapsecond.utcd.org
> > > at all.
> >
> > utcd.org doesn't resolve for me. So getaddrinfo has no info to get.
>
> Why then does it work on Linux?
>
nslookup works for me:
Win7 64-bit
$ nslookup leapsecond.utcd.org
Non-authoritative answer:
Server: UnKnown
Address: 192.168.1.1
Name: leapsecond.utcd.org
Address: 244.34.36.97
Win10 64-bit
C:\Users\Andy>nslookup leapsecond.utcd.org
Server: UnKnown
Address: 192.168.1.1
Non-authoritative answer:
Name: leapsecond.utcd.org
Address: 244.34.36.97
However, tracert and ping yield this on both W7 & W10:
$ tracert leapsecond.utcd.org
Unable to resolve target system name leapsecond.utcd.org.
$ tracert 244.34.36.97
Tracing route to 244.34.36.97 over a maximum of 30 hops
1 Transmit error: code 1231.
Trace complete.
$ ping 244.34.36.97
Pinging 244.34.36.97 with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
Ping statistics for 244.34.36.97:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Weird!
--
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