The InetAddress...getHostName() call will use the DNS databases.
For most computers, however, this won't return anything useful.

        Randy

> -----Original Message-----
> From: David Wall [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 12:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Reverse DNS lookup
> 
> 
> > InetAddress.getByName(<ip address>).getHostName() will do what you
> > want, if the info is available.
> 
> Where would the info have to be available?  Is there anything 
> comparable to
> a "dig -x" command under Unix?  For most IP addresses, there 
> will not be
> anything configured on my computer, but I know that ARPA 
> reverse lookups are
> possible.
> 
> The method you show above still returns the IP address on my 
> system, yet a
> "dig -x" will show the host name resolved.
> 
> David
> 
> 

Reply via email to