Open ddz996 opened 1 week ago
This commit implements the ability to resolve IP addresses remotely via SOCKS5 . It does so by intercepting DNS A and AAAA queries and replying with IP addresses from a virtual IP space which is reserved for DNS resolves. When an application performs a DNS lookup, a mapping from the virtual IP to a DNS name is created and cached for a short period of time. If the application subsequently connects to the virtual IP, the dialer will use the DNS name from the mapping instead of the destination IP address.
Wow, that's interesting! Thank you for such a finding, I will take a look at how it works in detail in a couple of days
since ssh tunnel has no udp support maybe remote dns is the right way to solve this problem https://github.com/blechschmidt/tun2socks/tree/remotedns
please take a look this repository thanks