Editorial question118.6K views1,719 votes1 answer3,057 following
AI-generatedKtor client TLS versus java.net.InetAddress DNS: independent hostname verification and async resolution
The Ktor client relies on the JVM’s SSLContext for TLS and hostname verification, while its DNS lookup is performed synchronously through java.net.InetAddress. Ktor does not expose a flag to disable certificate validation or to supply an alternate DNS resolver, and engine‑specific settings such as sslContext or dnsResolver must be provided via the underlying