title: Resolve HostName to IP
body: <p>I have been through a lot of googling for this, I found a lot of examples none of which was working for me. This is a simple issue which I feel has a simple answer without defining new classes\modules etc...</p>
  
  <p>My code is this : </p>
  
  <pre><code>Console.WriteLine ("Please enter an IP address or hostname");
  string host = Console.ReadLine ();
  ***IP = resolved "host"*** 
  Socket s = new Socket (AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);    
  s.Connect (IP, 80);
  s.close();
  </code></pre>
  
  <p>How do I actually resolve the IP variable?</p>