- All Known Implementing Classes:
DefaultDnsResolver
,RoundRobinDnsResolver
public interface DnsResolver
DNS resolving interface.
-
Method Summary
Modifier and TypeMethodDescriptionresolveAddress
(String hostname, DnsAddressLookup dnsAddressLookup) Resolve hostname toInetAddress
.default boolean
Deprecated, for removal: This API element is subject to removal in a future version.this method is no longer invoked and may be removed in the future
-
Method Details
-
useDefaultJavaResolver
Deprecated, for removal: This API element is subject to removal in a future version.this method is no longer invoked and may be removed in the futureWhether to use standard Java DNS resolver. If this method returns true,resolveAddress(String, io.helidon.webclient.api.DnsAddressLookup)
method is not invoked and noDnsAddressLookup
preferences will be applied.- Returns:
- use standard Java resolver
-
resolveAddress
Resolve hostname toInetAddress
.- Parameters:
hostname
- hostname to resolvednsAddressLookup
- allowed version of the IP- Returns:
- resolved InetAddress instance
-