this project is to avoid the DNS poisoning.
About
This project use python script, but I just have a little skill with python, so the main script is based on henices/Tcp-DNS-proxy.
If you are not a pythoner, maybe you can try my another project isayme/fuck_dns which is also associated with DNS poisoning.
How To Use
Linux User
- change your dns server to 127.0.0.1
$ vi /etc/resolve.conf
nameserver 127.0.0.1 - restart the network $ sudo /etc/init.d/networking restart
- run the script : $ sudo python DnsByTcp.py
Windows User
- change your dns server to 127.0.0.1, you can use my bat script(cdns.bat) and follow its prompt message to change your dns server fastly.
- run the script $ sudo python DnsByTcp.py
-----
又是以tcp协议发出dns请求的方法,可用,看看能用多久。
你可以克隆DnsByTcp后,修改里面的DnsByTcp.py文件里的倒数第二行里的53为其他端口,比如54,以避免使用53这个默认的端口。
使用例子:
sudo wg-quick up wg0
networksetup -setdnsservers "Wi-Fi""Empty"&& networksetup -setdnsservers "Wi-Fi" 127.0.0.1
cd ~/dnsbytcp && sudo python DnsByTcp.py
使用例子:
sudo wg-quick up wg0
networksetup -setdnsservers "Wi-Fi""Empty"&& networksetup -setdnsservers "Wi-Fi" 127.0.0.1
cd ~/dnsbytcp && sudo python DnsByTcp.py