libdns: Fix connect and try next nameserver when ECONNREFUSED.
* dirmngr/dns.c (dns_so_check): When EINVAL, release the association by connect with AF_UNSPEC and try again. Also try again for ECONNREFUSED. (dns_res_exec): Try next nameserver when ECONNREFUSED.
- GnuPG-bug-id: T3374
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>