This is the mail archive of the
cygwin
mailing list for the Cygwin project.
getaddrinfo fails with EAI_NODATA for some valid hosts with A records
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin at cygwin dot com
- Date: Thu, 7 Jan 2016 15:39:08 +0000 (UTC)
- Subject: getaddrinfo fails with EAI_NODATA for some valid hosts with A records
- Authentication-results: sourceware.org; auth=none
getaddrinfo fails with err 7 EAI_NODATA for some valid hosts with A records.
Err 7 EAI_NODATA is mapped from WSANO_DATA err 11004 in Windows.
Can anyone reproduce failure with problem host name below?
STC is run on Linux and Cygwin (up to date):
#!/bin/bash
# nslookup, getent hosts, getent ahosts run with good and problem host names
uname -srvmo
nslookup -debug cygwin.org
getent hosts cygwin.org
getent ahosts cygwin.org
nslookup -debug leapsecond.utcd.org
getent hosts leapsecond.utcd.org
getent ahosts leapsecond.utcd.org
uname -srvmo
# Linux results:
$ uname -srvmo
Linux 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux
$ nslookup -debug cygwin.org
Server: 64.59.135.148
Address: 64.59.135.148#53
------------
QUESTIONS:
cygwin.org, type = A, class = IN
ANSWERS:
-> cygwin.org
internet address = 209.132.180.131
ttl = 300
AUTHORITY RECORDS:
ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name: cygwin.org
Address: 209.132.180.131
$ getent hosts cygwin.org
209.132.180.131 cygwin.org
$ getent ahosts cygwin.org
209.132.180.131 STREAM server1.sourceware.org
209.132.180.131 DGRAM
209.132.180.131 RAW
$ nslookup -debug leapsecond.utcd.org
Server: 64.59.135.148
Address: 64.59.135.148#53
------------
QUESTIONS:
leapsecond.utcd.org, type = A, class = IN
ANSWERS:
-> leapsecond.utcd.org
internet address = 244.34.36.97
ttl = 600
AUTHORITY RECORDS:
ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name: leapsecond.utcd.org
Address: 244.34.36.97
$ getent hosts leapsecond.utcd.org
244.34.36.97 leapsecond.utcd.org
$ getent ahosts leapsecond.utcd.org
244.34.36.97 STREAM leapsecond.utcd.org
244.34.36.97 DGRAM
244.34.36.97 RAW
$ uname -srvmo
Linux 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux
# Cygwin results:
$ uname -srvmo
CYGWIN_NT-6.1 2.3.1(0.291/5/3) 2015-11-14 12:44 x86_64 Cygwin
$ nslookup -debug cygwin.org
Server: 64.59.135.148
Address: 64.59.135.148#53
------------
QUESTIONS:
cygwin.org, type = A, class = IN
ANSWERS:
-> cygwin.org
internet address = 209.132.180.131
ttl = 199
AUTHORITY RECORDS:
ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name: cygwin.org
Address: 209.132.180.131
$ getent hosts cygwin.org
209.132.180.131 cygwin.org
$ getent ahosts cygwin.org
209.132.180.131 0 cygwin.org
$ nslookup -debug leapsecond.utcd.org
Server: 64.59.135.148
Address: 64.59.135.148#53
------------
QUESTIONS:
leapsecond.utcd.org, type = A, class = IN
ANSWERS:
-> leapsecond.utcd.org
internet address = 244.34.36.97
ttl = 501
AUTHORITY RECORDS:
ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name: leapsecond.utcd.org
Address: 244.34.36.97
$ getent hosts leapsecond.utcd.org
244.34.36.97 leapsecond.utcd.org
$ getent ahosts leapsecond.utcd.org
$ uname -srvmo
CYGWIN_NT-6.1 2.3.1(0.291/5/3) 2015-11-14 12:44 x86_64 Cygwin
--
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