我试图使用Java代码获取我的域中的Windows机器的FQDN.
我试过InetAddress.getByName("machine-1").getCanonicalHostName()但只返回机器名称.
InetAddress.getByName("machine-1").getCanonicalHostName()
另一方面,如果我ping"machine-1",我会获得完整的域名.
你知道怎么做吗?
java windows fqdn inetaddress
fqdn ×1
inetaddress ×1
java ×1
windows ×1