libdns: Fix connect and try next nameserver when ECONNREFUSED.