org.jasen.interfaces
Interface DNSResolver

All Known Implementing Classes:
JasenDNSResolver

public interface DNSResolver

Resolves dns records.

Author:
Jason Polites

Method Summary
 Attributes lookup(String host, String type)
          Performs a DNS lookup to retrieve the DNS records for the given host.
 

Method Detail

lookup

public Attributes lookup(String host,
                         String type)
                  throws NamingException
Performs a DNS lookup to retrieve the DNS records for the given host.

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

Parameters:
host - The web host to lookup
type - The type of DNS entry to be returned (eg. A or MX)
Returns:
The attributes of the registered DNS entry for the given host
Throws:
NamingException - If the name could not be found