velosurf.util
Class DNSResolver

java.lang.Object
  extended by velosurf.util.DNSResolver

public class DNSResolver
extends java.lang.Object

Utility class to resolve names against DN servers


Constructor Summary
DNSResolver()
           
 
Method Summary
static boolean checkDNS(java.lang.String hostname)
          check DNS.
static boolean checkDNS(java.lang.String hostname, boolean mx)
          check DNS.
static java.util.List<java.lang.String> resolveDNS(java.lang.String hostname, boolean mx)
          Resolve MX DNS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSResolver

public DNSResolver()
Method Detail

checkDNS

public static boolean checkDNS(java.lang.String hostname)
check DNS.

Parameters:
hostname - hostname
Returns:
true if valid

checkDNS

public static boolean checkDNS(java.lang.String hostname,
                               boolean mx)
check DNS.

Parameters:
hostname - hostname
mx - do MX query or not
Returns:
true if valid

resolveDNS

public static java.util.List<java.lang.String> resolveDNS(java.lang.String hostname,
                                                          boolean mx)
Resolve MX DNS.

Parameters:
hostname - hostname
Returns:
list of MXs


~ooOoo~