Skip to content

Commit 89244d5

Browse files
author
duke
committed
Backport 118c9ade1a5e17d870415f689caa25af6524ab0e
1 parent da87df7 commit 89244d5

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)