When java InetAddress getHostName() method is used to do reverse DNS lookup for the host ip addresses, for ip addresses with incorrect/missing dns entries, getHostName() method takes more than 13 seconds in windows platform. When reverse lookup is done for more than two lakh ipaddresses, the processes run for a long time without any option to timeout the method. Since this getHostName() method call is a blocking call, need a mechanism to have timeout if it takes more time.
|