Rev 4 |
Blame |
Last modification |
View Log
| RSS feed
package com.dominicsayers.isemail;
import java.util.Hashtable;
import javax.naming.*;
import javax.naming.directory.*;
/**
* This class performs DNS lookups.
*
* @author Rgagnon.com and Daniel Marschall
* @see Source: http://www.rgagnon.com/javadetails/java-0452.html (Modified)
* @version 2010-06-14
*/
public class DNSLookup {
public static int doLookup
(String hostName, DNSType type
)
env.put("java.naming.factory.initial",
"com.sun.jndi.dns.DnsContextFactory");
.toString() });
if (attr == null) {
return 0;
}
return attr.size();
}
private DNSLookup() {
}
}