 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Madhur Ahuja Guest
|
Posted: Wed Aug 25, 2004 9:03 am Post subject: performing reverse DNS lookup with InetAddress |
|
|
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
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|