add option to disable dns cache
fix #40942
tested in chutney. the DNS cache is indeed disabled. Running one client in a loop for 1000 iterations generate 1000 DNS queries. Running 2 such clients in parallel, i get 1427 distinct queries, so concurrent requests are still deduplicated