From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.home.utahime.org (gate.home.utahime.org [111.108.18.121]) by sourceware.org (Postfix) with ESMTPS id 452C738582BF for ; Mon, 8 Aug 2022 12:14:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 452C738582BF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=utahime.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=utahime.org Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by gate.home.utahime.org (Postfix) with ESMTPS id 791F4271A9 for ; Mon, 8 Aug 2022 21:14:17 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1659960857; bh=fI30opCssAsTescH4YDMX6Vd+UnrG3D3D0Q8pGwqY38=; h=Date:To:Subject:From:In-Reply-To:References; b=F2yfqdVYUZISUsb3PwZ6fvYR+WiJUePZeK7JXcndg65tpson55PiTwIBsNBwrMdVr M5/fx+m/K5FsSFTk1iQ6yuZdOPTAPPlUplHPvIT6zl7JtZXiYdQCNdwicGS/dDATQG uDVBSPX9gmI+j+tk8z1sRKgKUdUKKw3nqSgML5PQI5RU2yNE3P51jeStetXlrvfepI Ez7ZmVeNsePWH9R+wky3kiurloD7+T33q1gJNbK+XFQgr1dNS5N5oBBCPSUG1m5/PK 6M9dUPYMQi/a6uwCcsG/FVnRsby4niJ2uFynKso8jkbHfplJowH/pcnqfvWShSgR8w gWPU6VvkTyMdQ== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id A0D6161A56; Mon, 8 Aug 2022 21:14:16 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.105.1 at eastasia.home.utahime.org Date: Mon, 08 Aug 2022 21:13:51 +0900 (JST) Message-Id: <20220808.211351.1242150605246600378.yasu@utahime.org> To: cygwin-apps@cygwin.com Subject: Re: resolv.conf and gnupg2 From: Yasuhiro Kimura In-Reply-To: References: <34ee0642-ec87-d602-ea68-1384c7b6e632@gmail.com> X-Mailer: Mew version 6.8 on Emacs 29.0.50 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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-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 12:14:21 -0000 From: Corinna Vinschen Subject: Re: resolv.conf and gnupg2 Date: Mon, 8 Aug 2022 09:30:47 +0200 > 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 Unfortunately it seems gnupg2 accesses /etc/resolv.conf in some way. (Cygwin64)yasu@rolling[1007]% pwd /cygdrive/c/Users/yasu/Work/gnupg (Cygwin64)yasu@rolling[1008]% git grep -F resolv.conf NEWS: * dirmngr: Make reading resolv.conf more robust. [T5657] NEWS: * dirmngr: Now detects a changed /etc/resolv.conf. dirmngr/dns-stuff.c:#define RESOLV_CONF_NAME "/etc/resolv.conf" dirmngr/dns-stuff.c: /* Force a reload if resolv.conf has changed. */ dirmngr/dns-stuff.c: log_debug ("dns: resolv.conf changed - forcing reload\n"); dirmngr/dns.c: if ((error = dns_resconf_loadpath(resconf, "/etc/resolv.conf"))) { dirmngr/dns.c: * /etc/resolv.conf, defaulting to a nameserver of dirmngr/dns.c:/** ugly hack to support specifying ports other than 53 in resolv.conf. */ dirmngr/dns.c: * is the intersection of the /etc/resolv.conf families and dirmngr/dns.c: * /etc/resolv.conf has "family inet4" and .ai_type dirmngr/dns.c: MAIN.resconf.path[MAIN.resconf.count++] = "/etc/resolv.conf"; dirmngr/dns.c: { "show-resconf", &show_resconf, "show resolv.conf data" }, dirmngr/dns.c: " -c PATH Path to resolv.conf\n" (Cygwin64)yasu@rolling[1009]% --- Yasuhiro Kimura