refine dnslib_resolve_over_tcp