heiher / hev-socks5-tunnel

A high-performance tun2socks for Linux/Android/FreeBSD/macOS/iOS/WSL2 (IPv4/IPv6/TCP/UDP)
MIT License
636 stars 130 forks source link

DNS 如何工作? #116

Closed Journalist-HK closed 1 month ago

Journalist-HK commented 2 months ago

README.md 中并没有提及 DNS。按照说明进行设置后不能正常解析 DNS,通过 IP 进行的连接可以正常被代理。

tunnel:
  name: tun0
  mtu: 8500
  multi-queue: false
  ipv4: 10.118.0.1
  ipv6: 'fdaf:052b:975c::1'

socks5:
  port: 7890
  address: 192.168.1.2
  udp: 'udp'
  mark: 438
heiher commented 2 months ago

DNS地址还是在操作系统中配置,根据路由命中分为两种情况:如果本地配置DNS的流量经过Tun,那么则需要使用Socks5服务器端可达的DNS地址。反之,则会在本地直连DNS。

SaeedDev94 commented 2 months ago

I wish it can handle DNS requests especially for android