Interface DnsClient


@ThreadSafe public interface DnsClient
An interface describing a DNS client.
Since:
4.6
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the resource record values for the given name and type.
  • Method Details

    • getResourceRecordData

      List<String> getResourceRecordData(String name, String type) throws DnsException
      Gets the resource record values for the given name and type.

      Implementations should throw DnsWithResponseCodeException if the DNS response code is known. Otherwise, the more generic DnsException should be thrown.

      Parameters:
      name - the name of the resource to look up
      type - the resource record type, typically either "SRV" or "TXT".
      Returns:
      the list of values for the requested resource, or the empty list if none exist
      Throws:
      DnsException - the exception