GetHostEntry() doesn't resolve the address anymore
<p>I recently switched from .NET v3.5 to v4.0 Client Profile and  at first run GetHostEntry() got problem.</p>

<pre><code>          tcpClient.SocketInfo.SourceName = remoteMatcher.Host; // "88.255.126.48"
          tcpClient.SocketInfo.SourcePort = remoteMatcher.Port; // 999

          IPHostEntry ipEntry = Dns.GetHostEntry(tcpClient.SocketInfo.SourceName);
</code></pre>

<p><strong>GetHostEntry() causes an exception:</strong> </p>

<blockquote>
  <p><strong>WSANO_DATA
  11004</strong>
  Valid name, no data record of requested type.
  The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. The usual example for this is a host name-to-address translation attempt (using gethostbyname or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server). An MX record is returned but no A record—indicating the host itself exists, but is not directly reachable.</p>
</blockquote>

<p>I'm gonna reboot the machine and wanted to ask this question before all things lost on my mind.</p>

<p><strong>UPDATE:</strong></p>

<p>My workaround:</p>

<pre><code>   // .NET Framework v4.0 bug?? 
   IPAddress ip;
   if (IPAddress.TryParse(tcpClient.SocketInfo.SourceName, out ip))
       tcpClient.SocketInfo.SourceIP = tcpClient.SocketInfo.SourceName;
   else
   {
       IPHostEntry ipEntry = Dns.GetHostEntry(tcpClient.SocketInfo.SourceName);
       IPAddress[] addr = ipEntry.AddressList;
       tcpClient.SocketInfo.SourceIP = addr[addr.Length - 1].ToString();
   }
</code></pre>
