dns - Java Resolve IPv6 incorrect -
i'm trying resolve ipv6 address using java code wrote returns host name same given, while running nslookup
resolve real name:
.
here java code:
try { inet6address addr = (inet6address) inet6address.getbyname("2607:f8b0:4002:c06::65"); system.out.println("host: " + addr.gethostname()); } catch (unknownhostexception e) { e.printstacktrace(); }
output:
host: 2607:f8b0:4002:c06:0:0:0:65
why that? java have different dns resolver?
Comments
Post a Comment