Module java.base
Package java.net.spi

Interface InetAddressResolver


public interface InetAddressResolver
This interface defines operations for looking up host names and IP addresses. InetAddress delegates all lookup operations to the system-wide resolver.

The system-wide resolver can be customized by deploying an implementation of InetAddressResolverProvider.

Since:
18
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A LookupPolicy object describes characteristics that can be applied to a lookup operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    lookupByAddress(byte[] addr)
    Lookup the host name corresponding to the raw IP address provided.
    Given the name of a host, returns a stream of IP addresses of the requested address family associated with a provided hostname.
  • Method Details