Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote DNS #5

Open
ddz996 opened this issue Sep 27, 2024 · 3 comments
Open

Remote DNS #5

ddz996 opened this issue Sep 27, 2024 · 3 comments

Comments

@ddz996
Copy link

ddz996 commented Sep 27, 2024

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

@ddz996
Copy link
Author

ddz996 commented Sep 27, 2024

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.

@Anton2319
Copy link
Owner

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

@ddz996
Copy link
Author

ddz996 commented Oct 12, 2024

xjasonlyu/tun2socks#374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants