From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by sourceware.org (Postfix) with ESMTPS id 8E9923857372 for ; Mon, 8 Aug 2022 07:30:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8E9923857372 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 (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M3Eqr-1oOWWb3dEb-003hFk for ; Mon, 08 Aug 2022 09:30:48 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id CB342A80780; Mon, 8 Aug 2022 09:30:47 +0200 (CEST) Date: Mon, 8 Aug 2022 09:30:47 +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: <34ee0642-ec87-d602-ea68-1384c7b6e632@gmail.com> X-Provags-ID: V03:K1:2V3UWqkO08YwPAPAEgElotm1GVban/t+Xz99aXSddujT0j/cVB6 7IlFLRaY5rb6KIrPjMkk2oyME83xY/TXSFMlxxibLAboG9eA4NSc70nKQHjssEDh9iqlEv5 a0pKdOZziNht5e6VX3n+PGZGhsm6GD66D4caZySiGzsAyOwNjw1HO2jOucKhQDMkhF3Ibhq OYXTJz4YGlt51NkVmLeyw== X-UI-Out-Filterresults: notjunk:1;V03:K0:UDKd8+cDtB0=:EZvCNoYDxzmKgFopfzE++2 8PZXOO4luOUNRR/4PHGIHQN0HsDatx5lBSW5Oi/sVX30BEIKBvIF2VH98xQ3ScSDdLLjAI+F8 7I/CyGyLA+X3Gv0kJ/jxkwe9HV7ySG/39pQ+24DiR7aRW0N5+l6OBh5j1yi5hsbJZInKv+8o2 u7Xmd4qdRBKuscKK/fqvOqtLWQXuvlK975wVavPP4DJMeEpqYbo4FdnFkBxir5dvDAnHhAReS Qs17do150F6b6YNKm3SBnIo+807Knhlz5uzJdAKw8+TbDfzn1dwntqy+JPPQ3ez/LP0sdJSIV JLPi/2JbrnswUoqJUIbZLKVxY5C6qEmKC25ATHBMaR7mf6IvbtuMAaRHFJ4sZyiLVJSWCbag1 QR2N+jYZsdEsw42OgUiLi92Hca5mXR4gLf2wFHtOu0m38OKrizlA3LoPsBvv49CDSWtLibH4O gFuoLH8vMnYjWedFEGodr9fdOc6Suyr76eSj3PT0hCzSRIqVhQLH3Vfn/dEaWBUVz4B5ooZmy Of8XU3gTbhn6pOX0tz3LHu7TqhqjpUQ38dtkN5t2OS/WUS0r+YBMQI1SnZDSngpZxGQOmWV8E nhrnUTTOiA9AeQ8u26lGXv+IY+Z/nM8lKGx9oPNzsrwZP21wVpzgqly8ZVcXsBZTzAyj73M4u X3lyecSgXSElxX2+KEt5gMerJ32tQt1TkBv9ZY9xbYoEhoUkUmQ5sf0BC5bCbDamwCd5KEnAK +GMJDJoos8joCDd8mADncNoVIU4KhxPIf4KghXZQgTv5T4WCwMqHp8fyG0s= X-Spam-Status: No, score=-95.5 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 07:30:52 -0000 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...? Corinna