AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

performing reverse DNS lookup with InetAddress

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Madhur Ahuja
Guest





PostPosted: Wed Aug 25, 2004 9:03 am    Post subject: performing reverse DNS lookup with InetAddress Reply with quote




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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.