X-Recipient: archive-cygwin@delorie.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:from:references:in-reply-to:mime-version:date
	:message-id:subject:to:content-type; q=dns; s=default; b=ZUY+1cO
	5vfXt+YVcd7tYwfKniJk7jlX3QPbSK+k9Hnb7bd1giviiEor3Rp0UJ5DTBRczy+C
	GA8LxNv6AVMDqaEaORsWZl1MGwLjdQLLutEY2FxN/TCBCavvpGJMIZG4HDBFotrE
	NvDHq1hGaSftliEmX/M63eRwy26EQx10iaPk=
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:from:references:in-reply-to:mime-version:date
	:message-id:subject:to:content-type; s=default; bh=WYU0gJ17ojPzO
	elUSKq3UotLa6U=; b=QM297hcGRlcw8Nc5h50RTyfH/Vgp2//t3kzJ9ZLAN6vao
	bQmg3oNll3g9fmQDv6zz2nWaCYM/svteLb7Z707CNrsA1MqJeLXAzsdlga5qsq8u
	+Q0yJNDXcBfDPbR6IoDlvZ2cE7RyUXd4SP7J76OPIxLdM2l4t/24Y85WJtnLeA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: mail-we0-f171.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:from:references:in-reply-to:mime-version         :thread-index:date:message-id:subject:to:content-type;        bh=oKho7C30a3KEw4BjNLWf4DgX+XsBduYpBhSlHKHtMfs=;        b=a/20VtweXhBISmXEbbBScDfWzR83J790FzvDVeM8wRGNbckOu8h3Ha458bxIpRyfA9         3gT5J7+MHjcY03RwRwcScSje+HhfXOthW3sVLf8XVMVwLqtbjZdcLFA2pCaQanZ/whMs         kUVDuBAeQmqD9hzfpf08oSzH3/wv4aTwZ1pRNVLgWEvos7Z763lpD6dDKevlIv1BFokg         a002IewdV9cSinR2PByd7GrcsCbIFW0H5MvOqLVynsCVCJPqp6v0iYYJDaJyZJH0hBz5         dNtm6a5/18S2Nh6eLvwNRAAPxH+tvA9adCo3eMimnZfzaYv6x+GF5uSIcS7nyPWboKeS         jy4A==
X-Gm-Message-State: ALoCoQkv4jeSPa5uAVRVi0JjhLgP7IXrxvrEKy00gM0rc3Or7NkNiCSf5TDMULSjmFCdbjK/AJga
X-Received: by 10.180.211.239 with SMTP id nf15mr9487755wic.9.1397986994377; Sun, 20 Apr 2014 02:43:14 -0700 (PDT)
From: Peter Hancox <phancox@dtc.com.au>
References: <8b71991a92969e0e400fec65c088e35d@mail.gmail.com> d174c27d0fad611e1da27bae93d1fc34@mail.gmail.com
In-Reply-To: d174c27d0fad611e1da27bae93d1fc34@mail.gmail.com
MIME-Version: 1.0
Date: Sun, 20 Apr 2014 19:43:41 +1000
Message-ID: <1f1aad12923097ea652f041c1598dc98@mail.gmail.com>
Subject: RE: Could not resolve hostname xxx: Bad address
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

After running strace I was able to determine there was a problem calling
cygwin_gethostname.

This led me to a recent thread "1.7.29-2: Exception from
cygwin_gethostname".  Replacing cygwin1.dll with the snapshot build
referenced in that thread fixed my problem also.


-----Original Message-----
From: Peter Hancox
Sent: Sunday, 20 April 2014 16:52
Subject: ssh: Could not resolve hostname xxx: Bad address

OpenSSH under Cygwin just started failing with "Could not resolve host
address".  Originally this was actually using scp to transfer a file to a
local host, however, the attached example is a simplified test case.
Output from cygcheck attached.

PS D:\WorkArea\Cygwin> ssh -vvvv www.ibm.com OpenSSH_6.6, OpenSSL 1.0.1g 7
Apr 2014
ssh: Could not resolve hostname www.ibm.com: Bad address PS
D:\WorkArea\Cygwin> ping www.ibm.com

Pinging e3062.x.akamaiedge.net [23.37.133.247] with 32 bytes of data:
Reply from 23.37.133.247: bytes=32 time=19ms TTL=59 Reply from
23.37.133.247: bytes=32 time=19ms TTL=59 Reply from 23.37.133.247: bytes=32
time=19ms TTL=59 Reply from 23.37.133.247: bytes=32 time=20ms TTL=59

Ping statistics for 23.37.133.247:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round
trip times in milli-seconds:
    Minimum = 19ms, Maximum = 20ms, Average = 19ms

Although this particular test was run from within Powershell, same results
from command shell and bash.

I am aware of the recent issue with mixed case host names but shouldn't be
relevant in this case and OpenSSH and all installed Cygwin software is at
latest versions.  Have reinstalled OpenSSH just to be sure and still fails.

Note that I have exactly the same Cygwin (x64) installed on a Windows Server
2012 instance running on Amazon EC2 and it continues to work fine.

Not sure when this broke but I probably haven't attempted to use ssh from
this machine for a couple of months.  One thing that has definitely changed
since the last use (and is different to the working instance) is
installation of Windows 8.1 Update 1 patch.

Running with "-vvvv" doesn't give any additional information other than
version numbers.  Nothing in Windows event logs.  Suggestion for debugging
further?

REGARDS
Peter

============================================================

DELTA Technology Consulting       Telephone: +61(2)9420-1800
PO Box 1383 Lane Cove             Facsimile: +61(2)9420-1899
NSW 1595 Australia                WWW: http://www.dtc.com.au

--
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

