Skip to content

Commit a858c27

Browse files
Shivangi Guptacoffeys
authored andcommitted
8338759: Add extra diagnostic to java/net/InetAddress/ptr/Lookup.java
Backport-of: 118c9ad
1 parent d470f69 commit a858c27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/jdk/java/net/InetAddress/ptr/Lookup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ public static void main(String args[]) throws IOException {
114114
// Now check that a reverse lookup will succeed with the dual stack.
115115
InetAddress ia = InetAddress.getByName(addr);
116116
String name = ia.getHostName();
117+
// output details of dual stack lookup by address
118+
System.out.println("dual stack lookup for addr " + addr + " returned IP address " + ia);
119+
System.out.println(" with hostname " + name);
117120

118121
System.out.println("(default) " + addr + "--> " + name
119122
+ " (reversed IPv4: " + ipv4Reversed + ")");

0 commit comments

Comments
 (0)