public void Test2() { Response response = resolver.Query("www.microsoft.com", QType.A); foreach (RecordA recordA in response.RecordsA) { Console.WriteLine("RecordA " + recordA.Address); // every record has a reference to its Resource Record Console.WriteLine("RR TTL " + recordA.RR.TTL); } // Asynd testing IAsyncResult ar = resolver.BeginGetHostEntry("www.microsoft.com", null, null); bool blnResult = ar.AsyncWaitHandle.WaitOne(5000, false); Console.WriteLine("Result {0}", blnResult); IPHostEntry iPHostEntry = resolver.EndGetHostEntry(ar); Console.WriteLine("EndGetHostEntry (via HostName) returns {0}", iPHostEntry.HostName); ar = resolver.BeginGetHostEntry(IPAddress.Parse("207.46.193.254"), null, null); blnResult = ar.AsyncWaitHandle.WaitOne(5000, false); Console.WriteLine("Result {0}", blnResult); iPHostEntry = resolver.EndGetHostEntry(ar); Console.WriteLine("EndGetHostEntry (via IP) returns {0}", iPHostEntry.HostName); }