Netprog 2002
DNS
69
Printing Internet Addresses
•
You get information from an InetAddress by
using methods:
•
–
ad.getHostName();
–
ad.getHostAddress();
–
•
Both return Strings representing the host
name, and the IP address in dotted decimal
format.