"M. Suresh Babu" wrote:
>
> Hello everyone,
>
> Im just switched over to 1.2 in linux (nice work!). Im facing one
> problem. i dunno if it is a bug or correction in new release.
>
> Using 1.1.7, the static method 'InetAddress.getLocalHost()' returns
> the local machine address.
>
>
Hello everyone,
Im just switched over to 1.2 in linux (nice work!). Im facing one
problem. i dunno if it is a bug or correction in new release.
Using 1.1.7, the static method 'InetAddress.getLocalHost()' returns
the local machine address.
But the same in 1.2 returns some other diff
the reverse lookup... as is my understanding...
>instantiation of the InetAddress object fails if reverse lookup is to
>fail. However, my program continues to execute to the point where it
>calls the getHostName() method. So, to me that means that the object was
>successfully instantiated.
me and address... in particular,
for IP = 206.19.60.13 I get
hostname = chinook.tenthmtn.com
but the Java program in my previous message does not work. I believe it
is capable of doing the reverse lookup... as is my understanding...
instantiation of the InetAddress object fails if reverse lookup is
On Thu, 10 Sep 1998 13:34:08 -0700, Masuda, Bond wrote:
>Hello,
>
>I am having trouble getting reverse DNS lookups to work on Linux.
>Following is a snip of the code... this works on Windows 95, Windows NT,
>but not on Linux. The problem is that the getHostName method returns the
>ipString instea
args[] )
{
String ipString = args[0];
String hostName;
InetAddress host;
try{
host = InetAddress.getByName(ipString);
}catch(UnknownHostException ex){
System.out.println(&q