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-egipddytbsmmeskukgs...@public.gmane.org>" 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

Reply via email to