|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.net.JasenDNSResolver
Simple implementation of a DNS resolver.
This class does NOT use any caching etc.
This is the default DNS resolver, however if caching etc is required, it is recommended that an alternate resolver be used
Constructor Summary | |
JasenDNSResolver()
|
Method Summary | |
Attributes |
lookup(String host,
String type)
Performs a DNS lookup to retrieve the DNS records for the given host. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JasenDNSResolver()
Method Detail |
public Attributes lookup(String host, String type) throws NamingException
DNSResolver
The type parameter represents the record type. For example:
lookup("microsoft.com", "A")Will return all the "A" records for microsoft.com
The jASEN engine will use this DNS resolver if specified, otherwise the internal DNS resolver will be used
lookup
in interface DNSResolver
host
- The web host to lookuptype
- The type of DNS entry to be returned (eg. A or MX)
NamingException
- If the name could not be found
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |