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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding
	:in-reply-to; q=dns; s=default; b=lZtdJZ2HdSFYS4gjKZv0OPwV10BJcV
	I55pXT975JOlu3R5LTJIKf9R47m8CIULOkXmSs0NE+RCPYaAZTq7B+88r68zpKTY
	iRXfzBg9ZjYmJgnxiKqtMYj6tx22004bNmuTQ/zms2UDua43kQyMf3IUJWmptgGM
	Z7WNRQmLEqtck=
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:references
	:mime-version:content-type:content-transfer-encoding
	:in-reply-to; s=default; bh=Iil8/OdV1Qgf5MEL1f+JPJ0vv5c=; b=xYs4
	S2A5QLrD1XQckO7ZnbrW5Tz5da/U9ZJaOWaSJlI8UOoEtuuyQp0ApSnF95SzQW6g
	oYY0YJXuoxYO1G10DDl/v33Wp9qh7iBsB2rPLFJ5YnTcH8mHvIAl+F0v3Rt0HcjJ
	dd5Ie+KBFQGFGhp3n4j0t6L84DenvGU6PphfumI=
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=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: =?UTF-8?Q?Ren=c3=a9_Berber?= <rene.berber@gmail.com>
Subject: Re: Cygwin unable to resolve hostnames
Date: Wed, 22 Jul 2015 16:39:13 -0500
Lines: 33
Message-ID: <mop2jp$kkn$5@ger.gmane.org>
References: <CAPohr29Vzd0N8+WsJHpK1tPHjFf+3rtxWUQAyOFqnCdCLZcMcw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <CAPohr29Vzd0N8+WsJHpK1tPHjFf+3rtxWUQAyOFqnCdCLZcMcw@mail.gmail.com>
X-IsSubscribed: yes

On 7/22/2015 3:53 PM, Matthew Fountain wrote:

> I'm not sure when this started, but recently Cygwin has been unable to
> resolve (certain) hostnames.
>
> Example:
>  wget github.com
> --2015-07-22 15:17:04--  http://github.com/
> Resolving github.com (github.com)... failed: Non-recoverable failure
> in name resolution.
[snip]
> Any ideas?

Cygwin by default uses the same resolution as Windows, that means that
you have something in Cygwin's configuration that affects resolution.

First and most obvious is /etc/resolv.conf; by default I don't think
there is one, but you can create it and Cygwin will use it.

Next would be if you have more than one DNS resolver in your (Windows)
network configuration, this means that any one of them can be used at
any time (literally it should be random)... and by coincidence Cygwin is
using one that doesn't work, the Web browser is using another, and
things change with different tests. Run 'ipconfig -all' and see under
the network adapter what's listed for "DNS Servers".

Also if there is more than one network adapter something similar to the
last paragraph will happen. I would think that Cygwin uses the DNS
servers on the "default" adapter.

Hope this helps.
-- 
René Berber


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

