.NET Overview

The Client

using System;
namespace DNSConsumerApp
{
  class Consumer
  {
    static void Main(String[] args)
    {
      localhost.DNSLookupService objDNS= new localhost.DNSLookupService();
      string strIPAddress = "";
      strIPAddress = objDNS.getIPForHostnae(args[0]);
      Console.WriteLine("Hostname: " + args[0] + " IP: " + strIPAddress);
    }
  }
}

José M. Vidal .

9 of 11