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

Implement remote DNS #374

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Commits on Jul 19, 2024

  1. Implement fake DNS

    This commit implements fake DNS.
    
    Fake DNS implements a UDP listener DNS A record queries on port 53. It
    replies with an unused IP address from an address pool, 198.18.0.0/15 by
    default. When obtaining a new address from the pool, tun2socks needs to
    memorize which name the address belongs to, so that when a client
    connects to the address, it can instruct the proxy to connect to the
    FQDN. To implement this IP to name mapping, the FakeIP module from clash
    is used.
    blechschmidt committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    b69e505 View commit details
    Browse the repository at this point in the history