getCanonicalHostName on Windows
Max (Weijun) Wang
Weijun.Wang at Sun.COM
Tue Mar 4 06:09:14 PST 2008
Hi All
I have a Windows domain called n3.local, and a server called k1 in
the domain, and a client. When I call the line --
InetAddress.getByName("k1.n3.local").getCanonicalHostName()
from the client, the returned string is "k1". How can I get
"k1.n3.local"? Is there anything wrong with my Windows configuration?
Or, I should use another Java method?
Thanks
Max
More information about the net-dev
mailing list