We have similar logic to SecureContextResolver in SslRequired. SslRequired potentially does a DNS lookup to resolve the InetAddress. It might be good as a follow up to consolidate this logic - granted we'll probably be deprecating the SslRequired setting soon.
Originally posted by @shawkins in #33480 (review)