1.禁止 dnsmasq 再使用 53 端口,方法是: 网络->DHCP/DNS->高级设置”中将 DNS 监听端口设置为 0
2.手工运行 dns2socks 服务: ./dns2socks -l 0.0.0.0:53 -d 1.1.1.1:53 -s socks5://username:[email protected]:1080 程序下载地址: https://github.com/tun2proxy/dns2socks 其中 xxx.xxx.xxx.xxx:1080 是事先已经搭建好的 vps 上面的 socks5 服务。
3.openwrt---网络---诊断 nslookup 正确解析出域名 google.com 的 ip 地址
Server: 127.0.0.1 Address: 127.0.0.1#53
Non-authoritative answer: Name: google.com Address: 142.250.176.14 Name: google.com Address: 2607:f8b0:4007:818::200e
![]() |
1
crysislinux 18 天前 via Android
其实没必要完全禁用 dnsmasq ,写个配置把 dnsmasq 的请求全部转发给别的 dns 服务就好了
|
![]() |
2
wuruxu 18 天前
dnsmasq 好用的很
1. 把 1.1./16 和 8.8./16 全部,通过 nfset, 启动后自动 使用 wireguard VPN 通道 2. 在 dnsmasq 配置哪些域名流量通过 1.1. 去解析并加入 nfset , 这样你就在整个 WIFI 上开启了透明代理 |