[4661] in java-interest
Re: misplaced method
daemon@ATHENA.MIT.EDU (Elliotte Rusty Harold)
Wed Jan 10 11:56:48 1996
From: "Elliotte Rusty Harold" <elliotte@blackstar.com>
To: java-interest@java.sun.com
Date: Wed, 10 Jan 1996 10:53:32 EST
Reply-To: elliotte@blackstar.com
Cc: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
> > I know I'm going to feel stupid on finding out the answer to this,
> > but I've gone through the APIs and can't find a method that mimics
> > the socket function gethostbyaddr. Do I need my eyes checked or is
> > it hidden somewhere?
>
> Try this, you need to convert the IP address to a string though:
>
> String host = getByName("129.144.86.116").getHostName();
This only seems to return the numeric IP address formatted as a
String, e.g. "199.1.32.90" instead of "star.blackstar.com". Is there
anyway to get the host name back?
--
Elliotte Rusty Harold Black Star Publishing Co., Inc.
elliotte@blackstar.com 116 East 27th Street
elharo@shock.njit.edu NY NY 10016
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com