Example #1
0
 static void Main(string[] args)
 {
     if (args == null || args.Length == 0)
     {
         Console.WriteLine("Usage: whois <domain-name>");
         return;
     }
     try {
         Console.WriteLine(WhoisResolver.Whois(args[0]));
     } catch {
         Console.WriteLine("Unexpected error occured!");
     }
 }