Package org.apache.james.jspf.core
Interface DNSService
- All Known Implementing Classes:
DNSServiceXBillImpl
public interface DNSService
Interface which should be used to access all necassary DNS-Records
-
Method Summary
Modifier and TypeMethodDescriptionTry to get all domain names for the running hostintgetRecords(DNSRequest request) Retrieve dns records for the given hostgetRecordsAsync(DNSRequest request) voidsetRecordLimit(int recordLimit) Sets a new limit for the number of records for MX and PTR lookups.voidsetTimeOut(int timeOut) Set the timeout for DNS-Requests
-
Method Details
-
getRecords
Retrieve dns records for the given host- Parameters:
request- the dns request- Returns:
- an array of Strings representing the records
- Throws:
TimeoutException
-
getRecordsAsync
-
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)
-