Skip to content

Commit

Permalink
Backport 118c9ade1a5e17d870415f689caa25af6524ab0e
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Oct 23, 2024
1 parent 3660c07 commit 1edb30a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/jdk/java/net/InetAddress/ptr/Lookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ public static void main(String args[]) throws IOException {
// Now check that a reverse lookup will succeed with the dual stack.
InetAddress ia = InetAddress.getByName(addr);
String name = ia.getHostName();
// output details of dual stack lookup by address
System.out.println("dual stack lookup for addr " + addr + " returned IP address " + ia);
System.out.println(" with hostname " + name);

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

0 comments on commit 1edb30a

Please sign in to comment.