dirmngr cygwin resolv.conf

john doe johndoe65534 at mail.com
Mon Jun 25 10:50:09 CEST 2018


Hi,

I'm using gpg2/dirmngr on Cygwin:

$ gpg2 --version
gpg (GnuPG) 2.2.8-unknown
libgcrypt 1.8.2

$ dirmngr --version
dirmngr (GnuPG) 2.2.8-unknown

On Cygwin '/etc/resolv.conf' is not  needed, as ilustrated by the below 
log dirmngr requires 'resolv.conf':

I used the commands from:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854359

$ dirmngr --server --homedir $PWD -v
dirmngr[7576]: error opening 
'/home/john/try/dirmngr-test/dirmngr_ldapservers.conf': No such file or 
directory
dirmngr[7576.0]: permanently loaded certificates: 134
dirmngr[7576.0]:     runtime cached certificates: 0
dirmngr[7576.0]:            trusted certificates: 134 (133,0,0,1)
# Home: /home/john/try/dirmngr-test
# Config: [none]
OK Dirmngr 2.2.8-unknown at your service
KS_GET -- 0x6C6ACD6417B3ACB1
dirmngr[7576.0]: stat'ing '/etc/resolv.conf' failed: No such file or 
directory
dirmngr[7576.0]: stat'ing '/etc/resolv.conf' failed: No such file or 
directory
dirmngr[7576.0]: failed to load '/etc/resolv.conf': No such file or 
directory
dirmngr[7576.0]: command 'KS_GET' failed: No such file or directory
ERR 167805009 No such file or directory <Dirmngr>

If I populate /etc/resolv.conf with my DNS nameserver it works.
This is not practical because everytime my DNS changes I would need to 
modify that file manually.

Could dirmngr use the DNS provided by windows or is there a way to 
bypass the use of 'resolv.conf'?

-- 
John Doe



More information about the Gnupg-users mailing list