dirmngr cygwin resolv.conf

NIIBE Yutaka gniibe at fsij.org
Wed Jul 4 04:05:27 CEST 2018

Werner Koch <wk at gnupg.org> wrote:
> ... on Windows.  Actually I developed the fallback on Windows becuase
> there it is easier to install the Tor browser.  Anyway, Gniibe probably
> found and fixed the problem in our DNS resolver.  I suggest to wait for
> the next release - probably next week.

That's not for Cygwin on Windows, but for GNU/Linux.

In dirmngr, the DNS resolver using Tor assumes that it returns
ECONNREFUSED when Tor doesn't run at 9050, then, it tries to the port

There was a bug of the DNS resolver.  When there are multiple
"nameserver" in /etc/resolv.conf, it should try all.  It was fixed, but
this fix had a side effect for ECONNREFUSED fallback mechanism for using
Tor.  This was fixed on Monday.

For the particular issue for Cygwin, it seems that connect(2) in Cygwin
environment may return EPERM instead of ECONNREFUSED.  I suspect this.

We can add the case of EPERM for Cygwin for workaround...

More information about the Gnupg-users mailing list