8338759: Add extra diagnostic to java/net/InetAddress/ptr/Lookup.java
Reviewed-by: dfuchs, shade
This commit is contained in:
parent
c58fbef05e
commit
118c9ade1a
@ -114,6 +114,9 @@ public class Lookup {
|
||||
// Now check that a reverse lookup will succeed with the dual stack.
|
||||
InetAddress ia = InetAddress.getByName(addr);
|
||||
String name = ia.getHostName();
|
||||
// output details of dual stack lookup by address
|
||||
System.out.println("dual stack lookup for addr " + addr + " returned IP address " + ia);
|
||||
System.out.println(" with hostname " + name);
|
||||
|
||||
System.out.println("(default) " + addr + "--> " + name
|
||||
+ " (reversed IPv4: " + ipv4Reversed + ")");
|
||||
|
Loading…
x
Reference in New Issue
Block a user