Skip to content

Commit 1edb30a

Browse files
author
duke
committed
Backport 118c9ade1a5e17d870415f689caa25af6524ab0e
1 parent 3660c07 commit 1edb30a

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
@@ -117,6 +117,9 @@ public static void main(String args[]) throws IOException {
117117
// Now check that a reverse lookup will succeed with the dual stack.
118118
InetAddress ia = InetAddress.getByName(addr);
119119
String name = ia.getHostName();
120+
// output details of dual stack lookup by address
121+
System.out.println("dual stack lookup for addr " + addr + " returned IP address " + ia);
122+
System.out.println(" with hostname " + name);
120123

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

0 commit comments

Comments
 (0)