I am trying to obtain the FQDN of a windows machine in my domain, using Java code.
I have tried the InetAddress.getByName("machine-1").getCanonicalHostName()
but only returns the machine name.
On the other hand if I ping "machine-1" I get the fully domain name.
Do you know how to do it?