title: Resolving DNS adress after proxy in SSH.NET
body: <p>I'm using <strong>SSH.Net</strong> in C# and during connection behind a SOCKS5 proxy, I get the following exception:</p>
  
  <pre><code>System.Net.Sockets.SocketException (0x80004005): No such host is known
     at System.Net.Dns.GetAddrInfo(String name)
     at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
     at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
     at Renci.SshNet.Session.ConnectSocks5()
     at Renci.SshNet.Session.Connect()
     at Renci.SshNet.BaseClient.Connect()
  </code></pre>
  
  <p>Connection from the same machine behind the same proxy to the same server  is working seamlessly with <strong>WinScp</strong> with the <strong>Do DNS name lookup at proxy end</strong> option selected in the site settings:</p>
  
  <p><a href="https://i.stack.imgur.com/66cLS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/66cLS.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to tell SSH.Net to do the same ? </p>