超级简单,不占任何系统资源,查询速度超快的抗污染DNS方法:
By TYPCN 大神
https://twitter.com/typcn_com/status/1125390936098213888
那么你所需要做的就是 一台能运行 iptables , 并且有 u32模块的设备 ..
比如一切的KVM虚拟机 .....比如一切的 OPENWRT/LEDE 系统路由器.
你需要的事情就2步 :
1 设置DNS 为 8.8.8.8 , 临时设置方法 nano /etc/resolv.conf
永久更改方法根据系统不同 Just Google it .....
插播一条 : Openwrt 路由器必须要安装 U32模块
opkg install iptables-mod-u32
2 设置 iptables 规则
iptables -I INPUT -s 8.8.8.8 -p udp --sport 53 -m u32 --u32 "2&0xFFFF=0x0" -j DROP
iptables -I INPUT -s 8.8.8.8 -p udp --sport 53 -m u32 --u32 "4&0xFFFF=0x4000" -j DROP
如何保存 iptables , Just Google it .....
OPENWRT/LEDE 已经默认自动开启了 DNS转发功能 ..
把你的电脑和PS4的DNS设置为这个设备 ipconfig /flushdns
这下就不怕因为 部分域名被污染导致游戏连不上了 ...看上去很happy~
By TYPCN 大神
https://twitter.com/typcn_com/status/1125390936098213888
那么你所需要做的就是 一台能运行 iptables , 并且有 u32模块的设备 ..
比如一切的KVM虚拟机 .....比如一切的 OPENWRT/LEDE 系统路由器.
你需要的事情就2步 :
1 设置DNS 为 8.8.8.8 , 临时设置方法 nano /etc/resolv.conf
永久更改方法根据系统不同 Just Google it .....
插播一条 : Openwrt 路由器必须要安装 U32模块
opkg install iptables-mod-u32
2 设置 iptables 规则
iptables -I INPUT -s 8.8.8.8 -p udp --sport 53 -m u32 --u32 "2&0xFFFF=0x0" -j DROP
iptables -I INPUT -s 8.8.8.8 -p udp --sport 53 -m u32 --u32 "4&0xFFFF=0x4000" -j DROP
如何保存 iptables , Just Google it .....
OPENWRT/LEDE 已经默认自动开启了 DNS转发功能 ..
把你的电脑和PS4的DNS设置为这个设备 ipconfig /flushdns
这下就不怕因为 部分域名被污染导致游戏连不上了 ...看上去很happy~