delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/07/10:39:50

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:to:from:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=dkO
yuNhP8H9PNzmLxK82c4fTFWl1jsZWDSJPOulGCrZfbMOCoTHFHo3e7h6UWREwEbz
ISkj9sdPnsUSSiGxP8FQtflDjfhiT6JFEVBtfp6jDwJjm/F6Hcy49Zhq1eMT9umi
BFjD2Uj3KBnwAmNHW+GPmABj8rYdo292MTQqkPbI=
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:to:from:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=53xvmp7ww
ye8ylajoM2gj6xKwc4=; b=F5+E4joi0KLkOe81dyJ+Jp8uLJt8iceCFSbvyQU5Z
K6doSQD9Kdd4c8jEQmFxCleMH5Cve25wwJ7vuNWzHBacAgaHZfAz1uqh/w+Gi7/6
8vWigpyNJxh5vgkSkgmAXjTNVd9d8iJwtVemA6/EDCbi8ckYPx4O+mycrMLx13Gs
sY=
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=0.7 required=5.0 tests=AWL,BAYES_40,FILL_THIS_FORM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:post, AUTHORITY, H*MI:post, Hx-languages-length:2904
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: getaddrinfo fails with =?utf-8?b?RUFJX05PREFUQQ==?= for some valid hosts with A records
Date: Thu, 7 Jan 2016 15:39:08 +0000 (UTC)
Lines: 115
Message-ID: <loom.20160107T163448-78@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019