public class DNSServiceXBillImpl extends Object implements DNSService
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
protected int |
recordLimit |
protected org.xbill.DNS.Resolver |
resolver |
| Constructor and Description |
|---|
DNSServiceXBillImpl(Logger logger)
Default Constructor.
|
DNSServiceXBillImpl(Logger logger,
org.xbill.DNS.Resolver resolver)
Constructor to specify a custom resolver.
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
convertRecordsToList(org.xbill.DNS.Record[] rr)
Convert the given Record array to a List
|
List<String> |
getLocalDomainNames()
Try to get all domain names for the running host
|
int |
getRecordLimit() |
List<String> |
getRecords(DNSRequest request)
Retrieve dns records for the given host
|
void |
setRecordLimit(int recordLimit)
Set a new limit for the number of records for MX and PTR lookups.
|
void |
setTimeOut(int timeOut)
NOTE if this class is created with the default constructor it
will use the static DefaultResolver from DNSJava and this method
will change it's timeout.
|
protected Logger log
protected int recordLimit
protected org.xbill.DNS.Resolver resolver
public DNSServiceXBillImpl(Logger logger)
public DNSServiceXBillImpl(Logger logger, org.xbill.DNS.Resolver resolver)
public void setTimeOut(int timeOut)
setTimeOut in interface DNSServicetimeOut - The timeout in secondsDNSService.setTimeOut(int)public List<String> getLocalDomainNames()
DNSServicegetLocalDomainNames in interface DNSServiceDNSService.getLocalDomainNames()public int getRecordLimit()
getRecordLimit in interface DNSServicepublic void setRecordLimit(int recordLimit)
setRecordLimit in interface DNSServicerecordLimit - public List<String> getRecords(DNSRequest request) throws TimeoutException
DNSServicegetRecords in interface DNSServicerequest - the dns requestTimeoutExceptionDNSService.getRecords(org.apache.james.jspf.core.DNSRequest)Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.