Home   Cover Cover Cover Cover
 

Domainnames

Chap4_Ex13.cs
using System;
using System.Net;

public class DomainNames {

  public static void Main(string[] args) {
    IPHostEntry e = Dns.GetHostByName("www.microsoft.com");
    foreach(IPAddress ia in e.AddressList) {
      Console.WriteLine(ia);
    }
  }
}