DNS Caching Duration in SocketsHttpHandler: 5‑Minute Limit
Problem Statement The HttpClient in .NET uses SocketsHttpHandler to resolve hostnames. Internally the handler caches DNS lookups for a default period of five minutes per host. This interval is hard‑coded in the runtime and is not exposed through any public API or configuration setting. Consequently, if a host’s IP address changes within that window, subseque