X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B84A38555A3
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1690559949;
	bh=D8vrFbrPfSJEGBz3+YhE0bdCnzCEqxd8meBXwnCPXfw=;
	h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=Q7GUVlZwbd5EQ98ouYHQoYG8D4i52hSiUSlni2LUoHyVgb945GRazS+vpomC2NNHo
	 WkeX6nXVReGh26Ma4dJopC8wa/gq11tJ3hQwXialeAeMCRdfE6Z6dm6btj6tsCLsPJ
	 sm+qmSR1uG6+a3kGM4Pm68PbfXzH4ifS1HNN0gPc=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 042573856092
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
Subject: dig and host don't work in IPv6
Date: Fri, 28 Jul 2023 11:58:15 -0400
Message-ID: <6hi7cilufpjnc4u968imrl826rk0n88hsc@4ax.com>
Mime-Version: 1.0
X-Newsreader: Forte Agent 4.2/32.1118
X-Archive: encrypt
X-Spam-Status: No, score=-3031.9 required=5.0 tests=BAYES_00,
 HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_NONE,
 SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Andrew Schulman via Cygwin <cygwin@cygwin.com>
Reply-To: Andrew Schulman <schulman.andrew@epa.gov>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Our agency has started using IPv6. My PC has IPv4 and IPv6 addresses. DNS
servers are all IPv6 addresses.

All of this works great, except that now the host and dig commands no longer
work, even with -6:

$ dig -6 cygwin.com

; <<>> DiG 9.11.9 <<>> -6 cygwin.com
;; global options: +cmd
;; connection timed out; no servers could be reached


It does work if I specify the DNS server in the command:

$  dig @2620:117:5010:1a1::f005 cygwin.com

; <<>> DiG 9.11.9 <<>> @2620:117:5010:1a1::f005 cygwin.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56580
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1220
; COOKIE: d078f7e381ceee2117dbf35864c3e4d5b7b37dc8c646f48c (good)
;; QUESTION SECTION:
;cygwin.com.            IN  A

;; ANSWER SECTION:
cygwin.com.     3600    IN  A   8.43.85.97

;; Query time: 142 msec
;; SERVER: 2620:117:5010:1a1::f005#53(2620:117:5010:1a1::f005)
;; WHEN: Fri Jul 28 11:55:01 EDT 2023
;; MSG SIZE  rcvd: 83


It also works if I manually add a 'nameserver' line to /etc/resolv.conf. That's
not a sustainable solution though, since the nameservers change and I drop into
and out of the IPv6 VPN.

Should I be doing something differently? Or is it a bug?

Thanks,
Andrew


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
