M
Madhur Ahuja
Hello
I use *InetAddress.getByName("host").getHostName()* to get the host name
from IP Address .
Problem is that this method doesn't do error checking i.e. when a IP address
cannot be resolved, it returns the IP Address in text format rather than the
exception.
Is there any way I can detect whether IP address was successfully resolved
or not.
--
Winners dont do different things, they do things differently.
Madhur Ahuja
India
Homepage : http://madhur.netfirms.com
Email : madhur<underscore>ahuja<at>yahoo<dot>com
I use *InetAddress.getByName("host").getHostName()* to get the host name
from IP Address .
Problem is that this method doesn't do error checking i.e. when a IP address
cannot be resolved, it returns the IP Address in text format rather than the
exception.
Is there any way I can detect whether IP address was successfully resolved
or not.
--
Winners dont do different things, they do things differently.
Madhur Ahuja
India
Homepage : http://madhur.netfirms.com
Email : madhur<underscore>ahuja<at>yahoo<dot>com