public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Yasuhiro Kimura <yasu@utahime.org>
To: cygwin-apps@cygwin.com
Subject: Re: resolv.conf and gnupg2
Date: Mon, 08 Aug 2022 21:13:51 +0900 (JST)	[thread overview]
Message-ID: <20220808.211351.1242150605246600378.yasu@utahime.org> (raw)
In-Reply-To: <YvC7p7GEPVmOZ42L@calimero.vinschen.de>

From: Corinna Vinschen <corinna-cygwin@cygwin.com>
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

  parent reply	other threads:[~2022-08-08 12:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-07 14:34 Marco Atzeri
2022-08-07 22:33 ` Mark Geisert
2022-08-08  9:15   ` ASSI
2022-08-08 11:50     ` Corinna Vinschen
2022-08-08  7:30 ` Corinna Vinschen
2022-08-08 11:54   ` Corinna Vinschen
2022-08-08 12:13   ` Yasuhiro Kimura [this message]
2022-08-08 14:13     ` Corinna Vinschen
2022-08-08 18:29       ` Chad Dougherty
2022-08-10 17:22       ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220808.211351.1242150605246600378.yasu@utahime.org \
    --to=yasu@utahime.org \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).