InetAddressExample -- creating InetAddress instances as a means of matching host names with IP addresses.

Given a host name in either symbolic or numerical form, this example prints out both versions of the host name, if it can determine them.


To see this example in action:
  1. Compile the Java source file, InetAddressExample.java:
    	javac InetAddressExample.java
    
  2. Run the class:
    	java InetAddressExample host1 host2 ...
    

The source.