vpnhood / VpnHood

Undetectable Fast Portable VPN
GNU Lesser General Public License v2.1
906 stars 145 forks source link

Improve DNS over TCP #178

Open karnilamit opened 1 year ago

karnilamit commented 1 year ago

Hi,

Is it possible to configure the VPNHood client to have only a TCP based tunnel? Does Options.UseUdpChannel force the client to use only TCP mode? In TCP only mode can the DNS packets be sent directly to the DNS server rather than routing them through the VPN?

Regards, AK

trudyhood commented 1 year ago

Thank you for your suggestion. We will do that.

0xRustlang commented 1 year ago

Thank you for your suggestion. We will do that.

I disagree.

TCP only mode is good, (you didn't have one already?)

But setting the client to not send DNS requests through VPN tunnel will cause DNS leak and is very annoying to solve and in some regions it will make vpnhood useless.

Can't you just send DNS requests via TCP? I remember that some DNS resolvers had an TCP option and accepted DNS requests that are sent to them via TCP. (Maybe Google or cloudflare atleast?)

trudyhood commented 1 year ago

VpnHood sends DNS through TCP in non-UDP mode. However, we are working on a method to improve its performance now.