Convert DNS query from UDP/TCP to tor-SOCKS5 or Tor-DNS (DNS over Tor)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
taiyakikun 95527d64bd 'dns2tcpdns' を更新 2 years ago
.gitignore Initial commit 2 years ago
LICENSE Initial commit 2 years ago
README.md 'README.md' を更新 2 years ago
dns2tcpdns 'dns2tcpdns' を更新 2 years ago

README.md

dns2tcpdns (DNS over Tor)

Convert DNS query from UDP/TCP to tor-SOCKS5 or Tor-DNS

Setting up torrc

AutomapHostsOnResolve 1
DNSPort 127.0.0.1:9053
AutomapHostsSuffixes .exit,.onion

Start and Stop, or Debug mode

dns2tcpdns [start|stop]

Operation check

dig @127.0.0.1 -p 8053 duckduckgo.com
dig @127.0.0.1 -p 8053 secysonfrxo2qmpzz7zox65gp65zyiys327mrdst4jdtfqo3a4lm3vqd.onion

How to use it with iptables (Optional)

iptables -t nat -I OUTPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:8053
iptables -t nat -I OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:8053