The standard Java API you can use is:
java.net.InetAddress
Or a more advanced JNDI search API:
DNS provider for the Java name directory interface
Both of the above Java APIs will work in a signed applet if the applets are granted the required policy rights (e.g. java.net.SocketPermission). But when the applet is used on a web page, the user will first be shown a dialog asking for permission to run. To measure the performance of these API calls, you can, of course, use a simple call to java.lang.Systen.currentTimeMillis ()
I do not recommend using dnsjava.org , it was popular, but the project has not been updated since 2004.
source share