
google 了一圈没找到 求指点
1 leozhang 2016-05-31 09:34:20 +08:00 via Android Dnsmasq 可以满足指定端口的需求 |
2 holyzhou 2016-05-31 09:37:11 +08:00 配置 dnsmasq 上游服务器,通过 dnsmasq 转 |
3 niuoh OP 就是说 不能通过 resolv.conf 配置了? 我用端口转发行不 |
4 firebroo 2016-05-31 10:35:25 +08:00 Dnsmasq |
5 kfll 2016-05-31 10:56:16 +08:00 osx 的 resolver 兹磁:/t/135910 glibc 不支持 |
8 smileawei 2016-05-31 13:18:14 +08:00 dnsmasq 是正途。在 dnsmasq 定义 server=ip#port 然后在 /etc/resolv.conf 配置 nameserver 为 127.0.0.1 @niuoh |
9 Lentin 2016-06-11 20:13:09 +08:00 伪造个不存在的假 IP 然后用 iptables 转发应该可行 iptables -t nat -A OUTPUT -p udp --dport 53 -d 255.255.233.233 -j DNAT --to-destination 208.67.222.222:5353 iptables -t nat -A OUTPUT -p tcp --dport 53 -d 255.255.233.233 -j DNAT --to-destination 208.67.222.222:5353 然后在 /etc/resolv.conf 写入 nameserver 255.255.233.233 |