From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Re: resolv.conf and gnupg2
Date: Mon, 8 Aug 2022 13:54:39 +0200 [thread overview]
Message-ID: <YvD5fzqQ5OSOKcUt@calimero.vinschen.de> (raw)
In-Reply-To: <YvC7p7GEPVmOZ42L@calimero.vinschen.de>
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 <mao@mai2.rcnet.ru>" 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
next prev parent reply other threads:[~2022-08-08 11:54 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 [this message]
2022-08-08 12:13 ` Yasuhiro Kimura
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=YvD5fzqQ5OSOKcUt@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--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).