refine dnslib_resolve_over_udp