public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* getaddrinfo fails with EAI_NODATA for some valid hosts with A records
@ 2016-01-07 15:39 Brian Inglis
  2016-01-08 15:19 ` Corinna Vinschen
  0 siblings, 1 reply; 12+ messages in thread
From: Brian Inglis @ 2016-01-07 15:39 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-01-13 21:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-07 15:39 getaddrinfo fails with EAI_NODATA for some valid hosts with A records Brian Inglis
2016-01-08 15:19 ` Corinna Vinschen
2016-01-08 18:52   ` cyg Simple
2016-01-08 19:03     ` Corinna Vinschen
2016-01-08 20:50       ` Andy Hall
2016-01-10  9:15         ` Brian Inglis
2016-01-10 12:12           ` Brian Inglis
2016-01-08 19:48     ` Stephen John Smoogen
2016-01-13 10:16   ` Brian Inglis
2016-01-13 15:12     ` Corinna Vinschen
2016-01-13 20:25     ` Andy Hall
2016-01-14  9:17       ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).