Skip to content

Run local, redirect UDP DNS requery to TCP format, send via a socks5 proxy. For avoiding DNS poisoning.

Notifications You must be signed in to change notification settings

GarrisonBaird/DnsOverTcpViaSocks5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background

As you know, China is a "magical" country! The govenment made a firewall named by Great Firewall(GFW), the purpose of the GFW is to block some website such as twitter.com, facebook.com and so on.

One of the method of GFW is DNS poisoning, while 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

  1. change your dns server to 127.0.0.1 $ vi /etc/resolve.conf nameserver 127.0.0.1
  2. restart the network $ sudo /etc/init.d/networking restart
  3. run the script $ sudo python3 DnsByTcp.py

Windows User

  1. 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.
  2. run the script python3.exe DnsByTcp.py from an administrator privileged cmd/bat

About

Run local, redirect UDP DNS requery to TCP format, send via a socks5 proxy. For avoiding DNS poisoning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.0%
  • Batchfile 2.0%