Using DNS

The static Dns class encapsulates the Domain Name Service.

Domain Name Service converts between a raw IP address, such as, and a human-friendly domain name.

The GetHostAddresses method converts from domain name to IP address (or addresses):

using System;
using System.Net;
using System.Threading;
using System.IO;
using System.Text;
class ThreadTest
    static void Main()
        foreach (IPAddress a in Dns.GetHostAddresses(""))

The output:  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.