From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by sourceware.org (Postfix) with ESMTPS id CFA1738582BE for ; Mon, 8 Aug 2022 11:54:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CFA1738582BE Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0FE1-1nRX0C2fY7-00xNnw for ; Mon, 08 Aug 2022 13:54:39 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 0B629A807B4; Mon, 8 Aug 2022 13:54:39 +0200 (CEST) Date: Mon, 8 Aug 2022 13:54:39 +0200 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: resolv.conf and gnupg2 Message-ID: Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <34ee0642-ec87-d602-ea68-1384c7b6e632@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:Q+4Z2y/shi1CUo7HQxbq3dGZxceqxdE3Ir4V+7mFTHu/REQNl92 cf5V2F1aG0L7mCwfKGuaePvT4ON0Xm1DXZPVkZG5qvW371R9n7+2vZ2D/PLRXkYoB0NTtcn V95G3gREAMgwyHzuaSpYnvu3up3EDHBYvUVQfcR2qEbHTaE3FsHLfQqdbphG+uMr2OJpwKy PlS4xVT8UfctrWUP74yLQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:jk87fQjilGc=:x+zzOZwTyNb+hWbzKl/pqA 9QvWdDbwnnO+PSnBCCaLYeR/KqoKSY3lr9fOSI9XwNDxyJNL6LiGsiAxa4I5lXbX6zT+cdXA4 bnpu1vZDAgpw9r+XPCrbICZ04pFpvaUgucFuwdwKGQHBigrheS0JLdlIIipRbrCvoZPhNES52 bTC0PuVW/a99vO6W7aGFRu5Pixt2zMuZSCkDoHxNPdZffq5S7EVtptsym60ylmjBOi2yiRYPr t4kGwISzvCsCJAADPB/BV+1Z2cfXk9kPsUlZlKHaBkl+AVF3Sc6myO2eYKFM7qm8RujoXHWd7 DSWbNlPp15g2f+nWfewS2JF4ZnO9iEhW0U75HQkMbsaDTLW2vGRuf6z7hYMnAyjXWTCRtLR/2 rk6CkI96TJuaE30sz/qSxo9ELUfwGNbAkY3AX7iea+GNaZS1xPrh/phNfcGjrTRXExJbkjfvz jmEy/hQmQp6QGm1UcodY++50pFVMAtBMroh17OJi08Ljh9mtmXKTjOEKbhux3xYDd2JSe466t sWDyfpE1Yto8YWi+wF7fHxncMmVeXEFhh5Nux/3JI19ZZabhN794Wmeq/+x2ENoOE5W/NV+fi 6sedIQT19DlLg1iJPuIfFSE1OQ9VAVKDZZiqzUNUM0g7e6JHSCs4XROzjum3L76P9ihXYjO05 8FVE4T/72hSr3kgtLKJXdJmjzqab8s3qaEiS/iD9IQJcMh3ZHnL0hDJQ8Z7qlufbih9io9/sz 67G/MAEH1hH4eVA9afc2OtMAv4W6+3q1qvU1q107JLB0xIiOqZ1l3JF4qq0= X-Spam-Status: No, score=-95.6 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2022 11:54:42 -0000 On Aug 8 09:30, Corinna Vinschen wrote: > On Aug 7 16:34, Marco Atzeri wrote: > > Hi, > > > > currently as default Gnupg 2.x is unable to contact keyservers and recover > > any key. Gnupg 1.x has not such problem > > > > $ /usr/bin/gpg2 --keyserver pgp.mit.edu --recv-keys 5981E818 gpg: keyserver > > receive failed: No such file or directory > > > > The cryptic message is due to the absence of a /etc/resolv.conf > > as adding a simple one with a public DNS server overcomes the issue > > > > $ cat /etc/resolv.conf > > ; /etc/resolv.conf file for dnsmaster > > ; > > domain .com > > nameserver 0.0.0.0 > > nameserver 8.8.8.8 > > > > > > $ /usr/bin/gpg2 --keyserver pgp.mit.edu --recv-keys 5981E818 > > gpg: key D17BF2305981E818: 1 duplicate signature removed > > gpg: key D17BF2305981E818: "Andrew Makhorin " not chan > > gpg: Total number processed: 1 > > gpg: unchanged: 1 > > > > > > I would expect BIND to be a package that creates/manages resolv.conf as > > it provides a library to parser it, but I do not see any place where this is > > done. > > > > $ cygcheck -p resolv.conf > > Found 7 matches for resolv.conf > > .. > > libirs161-9.11.9-1 - libirs161: BIND resolv.conf parser library > > man-pages-linux-5.13-1 - man-pages-linux: Linux manual pages > > > > Any suggestion on how to solve the absence of /etc/resolv.conf ? > > I doubt gnupg2 is the proper package to do so. > > I can't believe (but may be wrong, of course) that gnupg2 tries to > access /etc/resolv.conf by itself. I would rather guess that gnupg2 > is linked against one or more libs provided by the bind package, > and thus uses the resolver from the bind package. However, Cygwin > provides its own resolver entry points, and those don't need > /etc/resolv.conf, because they utilize the OS resolver. > > Is there a build option to avoid building against the bind lib? > Alternatively it might be possible to inject an autoconf variable > from cygport...? Having said that, Cygwin provides libresolv.a by itself anyway. How gets gnupg2 around that? How does it resolve? Corinna