We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3660c07 commit 1edb30aCopy full SHA for 1edb30a
test/jdk/java/net/InetAddress/ptr/Lookup.java
@@ -117,6 +117,9 @@ public static void main(String args[]) throws IOException {
117
// Now check that a reverse lookup will succeed with the dual stack.
118
InetAddress ia = InetAddress.getByName(addr);
119
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);
123
124
System.out.println("(default) " + addr + "--> " + name
125
+ " (reversed IPv4: " + ipv4Reversed + ")");
0 commit comments