Interface DNSService

All Known Implementing Classes:
DNSServiceXBillImpl

public interface DNSService
Interface which should be used to access all necassary DNS-Records
  • Method Details

    • getRecords

      List<String> getRecords(DNSRequest request) throws TimeoutException
      Retrieve dns records for the given host
      Parameters:
      request - the dns request
      Returns:
      an array of Strings representing the records
      Throws:
      TimeoutException
    • getRecordsAsync

      CompletionStage<List<String>> getRecordsAsync(DNSRequest request)
    • getLocalDomainNames

      List<String> getLocalDomainNames()
      Try to get all domain names for the running host
      Returns:
      names A List contains all domain names which could resolved
    • setTimeOut

      void setTimeOut(int timeOut)
      Set the timeout for DNS-Requests
      Parameters:
      timeOut - The timeout in seconds
    • getRecordLimit

      int getRecordLimit()
      Returns:
      the current record limit
    • setRecordLimit

      void setRecordLimit(int recordLimit)
      Sets a new limit for the number of records for MX and PTR lookups.
      Parameters:
      recordLimit - the new limit (0 => unlimited)