upstreams has an issue on this [1] but not much info there from a discussion on arch's bbs an patch can be deduced:
--- /usr/share/gnupg/dirmngr-conf.skel 2017-05-27 21:50:57.578027455 +0000 +++ /usr/share/gnupg/dirmngr-conf.skel 2017-05-27 21:50:48.357812029 +0000 @@ -67,3 +67,6 @@ #hkp-cacert /path/to/CA/sks-keyservers.netCA.pem +# dirmngr fails resolving when /etc/resolv.conf has no IPv4 nameserver +# see upstream bug https://dev.gnupg.org/T2990 + +standard-resolver this will only help users that first start dirmngr. I asked upstream wether they see issues with this. maintainer, please address this in time for stretch's release. Finding this workaround is quite unobvious, at least in some situations: for me Linux Containers would fail to build. Also the error message is wrong, which certainly does not help. Thanks and best regards, Ari
signature.asc
Description: OpenPGP digital signature