xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack

Home Page:https://github.com/xjasonlyu/tun2socks/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] DNS Forwarder

xtianxian opened this issue · comments

Description

Hi xjasonlyu,

Is there an way to easily I can forward DNS request to an upstream DNS server e.g. pdns, coredns, or to DOT, DOH using this tun2socks. btw i'm using it in Android vpn service.

Is this feature related to a specific bug?

No.

Do you have a specific solution in mind?

in the other tun2socks there is an option --dnsgw <dns_gateway_address> to where the dns request is forwarded.

Are you looking for the DNS hijack?

Yes. So i guess it is not possible for non rooted android device since iptables require root. Any plans of putting back FakeDns feature in the latest version?

By the way, thanks for the great work on this project i think it is the best tun2socks.

At times when socks5 does not support UDP, there can be issues with DNS resolution. Therefore, a fake DNS is required to resolve DNS.

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days