.NET Overview
DNSLookupService
) is added
automatically, so you can then use it: 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); } } }
9 of 11