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:

nslookup snapshot .

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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -