Interface DnsResolver

All Known Implementing Classes:
DefaultDnsResolver, RoundRobinDnsResolver

public interface DnsResolver
DNS resolving interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveAddress(String hostname, DnsAddressLookup dnsAddressLookup)
    Resolve hostname to InetAddress.
    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(forRemoval=true, since="4.0.4") default boolean 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 future
      Whether to use standard Java DNS resolver. If this method returns true, resolveAddress(String, io.helidon.webclient.api.DnsAddressLookup) method is not invoked and no DnsAddressLookup preferences will be applied.
      Returns:
      use standard Java resolver
    • resolveAddress

      InetAddress resolveAddress(String hostname, DnsAddressLookup dnsAddressLookup)
      Resolve hostname to InetAddress.
      Parameters:
      hostname - hostname to resolve
      dnsAddressLookup - allowed version of the IP
      Returns:
      resolved InetAddress instance