Interface DnsSrvResolver


  • public interface DnsSrvResolver
    Contract for doing SRV lookups.
    • Method Detail

      • resolve

        @Deprecated
        List<LookupResult> resolve​(String fqdn)
        Deprecated.
        This method is deprecated in favor of the asynchronous version. Use resolveAsync(String) instead
        Does a DNS SRV lookup for the supplied fully qualified domain name, and returns the matching results.
        Parameters:
        fqdn - a DNS name to query for
        Returns:
        a possibly empty list of matching records
        Throws:
        DnsException - if there was an error doing the DNS lookup
      • resolveAsync

        default CompletionStage<List<LookupResult>> resolveAsync​(String fqdn)
        Does a DNS SRV lookup for the supplied fully qualified domain name, and returns the matching results.
        Parameters:
        fqdn - a DNS name to query for
        Returns:
        a possibly empty list of matching records
        Throws:
        DnsException - if there was an error doing the DNS lookup