From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m0.truegem.net (m0.truegem.net [69.55.228.47]) by sourceware.org (Postfix) with ESMTPS id B08813858285 for ; Sun, 7 Aug 2022 22:33:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B08813858285 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maxrnd.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=maxrnd.com Received: (from daemon@localhost) by m0.truegem.net (8.12.11/8.12.11) id 277MXc1H005990; Sun, 7 Aug 2022 15:33:38 -0700 (PDT) (envelope-from mark@maxrnd.com) Received: from 162-235-43-67.lightspeed.irvnca.sbcglobal.net(162.235.43.67), claiming to be "[192.168.1.100]" via SMTP by m0.truegem.net, id smtpdrv3AEk; Sun Aug 7 15:33:33 2022 Subject: Re: resolv.conf and gnupg2 To: Cygwin-Apps Cc: Chad Dougherty References: <34ee0642-ec87-d602-ea68-1384c7b6e632@gmail.com> From: Mark Geisert Message-ID: Date: Sun, 7 Aug 2022 15:33:33 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: <34ee0642-ec87-d602-ea68-1384c7b6e632@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, 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-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: Sun, 07 Aug 2022 22:33:42 -0000 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. Could Cygwin itself provide a minimal /etc/resolv.conf pointing to public DNS server(s)? Some users might object to Google's public DNS (e.g. 8.8.8.8) though. Or perhaps a new package 'resolv.conf' with either the public DNS pointers or a postinstall script that massages the system's 'ipconfig /all' to obtain Windows' current settings. ..mark