String strHostname = dns.gethostname ();
Iphostentry iphostentry = DNS.GETHOSTBYNAME (strhostname);
INT NIP = 0;
Foreach (iPaddress ipaddress in iphostentry.addresslist)
{
Console.WriteLine ("IP #" NIP ":"
ipaddress.tostring ());
}
// ----------
DNS.GETOSTBYNAME (DNS.GETHOSTNAME ());