Skip to content

Commit 118c9ad

Browse files
serhiysachkovshipilev
authored andcommittedSep 19, 2024
8338759: Add extra diagnostic to java/net/InetAddress/ptr/Lookup.java
Reviewed-by: dfuchs, shade
1 parent c58fbef commit 118c9ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

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

+3
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)
Please sign in to comment.