X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 784923858280 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1690859123; bh=x2c3aeMblKqO5h8VMGJS8QdLNsJOm0RYvJ3/8+6adt0=; h=In-Reply-To:References:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=r5+G/ooYWwnD9bdxg0k+K4x2syGQJyMAH89svS7/PvJfEPFCwjrr1588zTvynnToX /3llRXvw0qkhnUw9f154hVQvnbzk5ux7fsoWx2FCnkZ9oWz9qXmB9MSla4IPHgDyrx eGbOZA6mfBczwrkmgE0JrMTlDEeXBesCFZMwZjvU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 33DB23858D28 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690859079; x=1691463879; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x+C3YJHIr+UqgI/3YKw/RfzjoruSn60KEW+9aTZdorQ=; b=eZbzioO2NXLKTWmSS78I0lJfyh7DKoHqORLZ9ZZOOHe01xMK1no+v+my/4GCNyolll v791bDXRgzEuIUd0l5JOt5KgyB+ElH6O3MHKN4zP2a3ilsY0uHVq7DSrabcv8seCj6P5 OLivPc5v72bCDp6/6QM4dR1P8nJVC4eNOzwqa0rsfcch8zIj6H9KEP79AJ//4VC9f0tu jdhziSy1lddh9xZ+WmnszMO2baFW2l/HkTD/DesGZuEfcHKmB3Qe+VT7NhiWYbFL1LG+ 4ckkA8Z71YQOzCEVsgrBlNbqJSmlE2MxPcPmwf84IHGTjkiiZwKFQwOAorrxnp1cL9lW P7cA== X-Gm-Message-State: ABy/qLaKZQXygHNLaspLPz8FLeFAuUOn/7PM3JwK5eDAFAhJutYGJTse 42ZG5FSjjjPDX8o7ZVu3JatmT9nObt4JprV0BaduD6Yz X-Google-Smtp-Source: APBJJlGc7CdF5yy+CcA/v2Bzx/67fnrj4+3W+S/8KhGzWu/7gDgxx3tSLqLPMuNBfKCyhBAHOfnILuUOMQnJ82BGlnw= X-Received: by 2002:a6b:f812:0:b0:783:6eef:1496 with SMTP id o18-20020a6bf812000000b007836eef1496mr10600996ioh.19.1690859079428; Mon, 31 Jul 2023 20:04:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <6hi7cilufpjnc4u968imrl826rk0n88hsc AT 4ax DOT com> <88i8cipvg9pl02drkt31mja146eqfuo9l5 AT 4ax DOT com> Date: Mon, 31 Jul 2023 23:04:38 -0400 Message-ID: Subject: Re: [EXTERNAL] dig and host don't work in IPv6 To: Andrew Schulman Cc: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Lee via Cygwin Reply-To: Lee Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 7/29/23, Andrew Schulman via Cygwin wrote: >> Sorry... Did you try using the -d option to see what DNS servers these >> commands try to actually connect to (and time out, eventually). > > No help unfortunately. > > $ host -d6 cygwin.com > Trying "cygwin.com" > ;; connection timed out; no servers could be reached Have you tried the windows version of bind from isc.org? I don't remember when ISC dropped (will drop?) support for windows, but I've been using dig from the bind9.16.41 package for a while. Not that I use it all that much, but it works for me.. or at least dig does. named on windows has something funky going on that I never figured out, so I'm running named on Debian. Get it here https://ftp.isc.org/isc/bind9/9.16.41/BIND9.16.41.x64.zip unzip and put that directory in your path $ which dig /cygdrive/c/Temp/BIND/dig and have fun! $ dig @2600:x:x:x::x:x www.google.com aaaa +short 2607:f8b0:4004:c09::67 2607:f8b0:4004:c09::69 2607:f8b0:4004:c09::93 2607:f8b0:4004:c09::63 Lee AT i3668 ~ $ dig @2600:x:x:x::x:x www.google.com a +short 172.253.122.147 172.253.122.103 172.253.122.99 172.253.122.104 172.253.122.105 172.253.122.106 ipv6 address hidden to protect the guilty :) ... hrmmm ... I just tried your "host -d6 cygwin.com" and got $ host -d6 cygwin.com Trying "cygwin.com" ;; connection timed out; no servers could be reached Do you have a firewall blocking outbound udp/tcp to port 53? I do, which is most probably why I get the timeout. But this works: $ host cygwin.com 2600:x:x:x::x:x Using domain server: Name: 2600:x:x:202::x:x Address: 2600:x:x:202::x:x#53 Aliases: cygwin.com has address 8.43.85.97 cygwin.com mail is handled by 10 sourceware.org. Maybe try using whatever dig you already have installed and do ipconfig /all | grep "DNS Server" and then dig @ cygwin.com Regards, Lee > >> (strace can help as well, I think.) > > Posted at https://pastebin.com/XWwxJ41b. I'm not able to make much sense of > it, > except that on line 1339, I waited almost 5 seconds for sendmsg: > > 4964291 6958349 [isc-worker0000] host 20999 cygwin_sendmsg: 28 = > sendmsg(20, > 0x7FFDFC830, 0x0) > > Thanks for taking a look. I'm looking at other options in resolv.conf, but > haven't found anything useful. > > I can't find any documention of the osquery option. This answer[1] says > "res_init() uses the Windows resolver if either /etc/resolv.conf does not > exist, > or /etc/resolv.conf contains options osquery." Doesn't help in this case > though. > > Andrew > > [1] > https://stackoverflow.com/questions/10523828/how-does-gcc-cygwin-get-the-dns-server > > > -- > 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 > -- 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