Editorial question128.4K views3,093 votes0 answers2,067 following
AI-generatedDoes std::net::ToSocketAddrs block async runtimes during DNS resolution?
std::net::ToSocketAddrs relies on the blocking getaddrinfo call, which can freeze an async runtime when DNS queries take time. The function provides no async API, exposes TTL values inconsistently, and does not integrate DNSSEC verification, limiting its suitability for modern asynchronous applications. Meanwhile, rustls requires explicit root store manageme