Interface DnsResolver

    • Method Detail

      • lookup

        CompletableFuture<Optional<InetAddress>> lookup​(String hostname)
        Perform a DNS lookup for the given hostname. Returns a future that contains the lookup results. If the optional is empty the lookup was completed but no result was found.
        Parameters:
        hostname - hostname to lookup
        Returns:
        a future
      • reverseLookup

        CompletableFuture<Optional<String>> reverseLookup​(InetAddress inetAddress)
        Perform a reverse DNS lookup for the given IP address. Returns a future that contains the lookup results. If the optional is empty the lookup was completed but no result was found.
        Parameters:
        inetAddress - IP address to lookup
        Returns:
        a future