|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DNSService
Provides abstraction for DNS resolutions. The interface is Mail specific. It may be a good idea to make the interface more generic or expose commonly needed DNS methods.
| Field Summary | |
|---|---|
static String |
ROLE
The component role used by components implementing this service |
| Method Summary | |
|---|---|
Collection<String> |
findMXRecords(String hostname)
Return a prioritized unmodifiable list of host handling mail for the domain. |
Collection<String> |
findTXTRecords(String hostname)
Get a collection of DNS TXT Records |
InetAddress[] |
getAllByName(String host)
|
InetAddress |
getByName(String host)
|
String |
getHostName(InetAddress addr)
Determines the hostname for an address |
InetAddress |
getLocalHost()
get the local hosts InetAddress |
Iterator<org.apache.mailet.HostAddress> |
getSMTPHostAddresses(String domainName)
Returns an Iterator over org.apache.mailet.HostAddress, a specialized subclass of javax.mail.URLName, which provides location information for servers that are specified as mail handlers for the given hostname. |
| Field Detail |
|---|
static final String ROLE
| Method Detail |
|---|
Collection<String> findMXRecords(String hostname)
throws TemporaryResolutionException
Return a prioritized unmodifiable list of host handling mail for the domain.
First lookup MX hosts, then MX hosts of the CNAME adress, and if no server is found return the IP of the hostname
hostname - domain name to look up
TemporaryResolutionException - get thrown on temporary problemsCollection<String> findTXTRecords(String hostname)
hostname - The hostname to check
Iterator<org.apache.mailet.HostAddress> getSMTPHostAddresses(String domainName)
throws TemporaryResolutionException
domainName - - the domain for which to find mail servers
TemporaryResolutionException - get thrown on temporary problems
InetAddress[] getAllByName(String host)
throws UnknownHostException
UnknownHostExceptionInetAddress.getAllByName(String)
InetAddress getByName(String host)
throws UnknownHostException
UnknownHostExceptionInetAddress.getByName(String)String getHostName(InetAddress addr)
addr - the address record
InetAddress getLocalHost()
throws UnknownHostException
InetAddress
UnknownHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||