强力推荐一个对付运营商DNS劫持的工具,请低调使用

2012-05-11 02:26:06 +08:00
 18m
一个很简单的python脚本,监听本地DNS请求,以TCP方式去获取并返回。
具体不多讲,聪明的你自己来领会。

github地址
https://github.com/henices/Tcp-DNS-proxy

= How to use this python script ?


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 python tcpdns.py
6986 次点击
所在节点    Python
7 条回复
kojp
2012-05-11 02:46:38 +08:00
哈哈,仔细看了一下。终于有我能看懂的代码了。。呵呵。
gDD
2012-05-11 08:21:20 +08:00
楼主写的?加个License吧。
est
2012-05-11 08:36:51 +08:00
tcp解析效率不行。要做一个cache才好用。
eerie
2012-05-11 08:48:02 +08:00
114dns就挺好用的,感觉做这个没什么必要啊,特别是海外的那几个dns访问速度比较慢
不过精神上支持下

另外看到个
print '>> Please wait program init....'
print '>> Init finished!'
print '>> Now you can set dns server to 127.0.0.1'
这个好蛋疼啊.......
18m
2012-05-11 09:51:43 +08:00
抱歉我没有讲清楚。
这是在github上翻到的,经过试用不错,所以拿来分享。不是我的创造,不敢造次。
meteor
2012-05-11 09:53:59 +08:00
OpenDNS的这个也是可以的.
Linux,Mac,Windows版皆有.
https://github.com/opendns/dnscrypt-proxy
18m
2012-05-11 09:56:55 +08:00
@est 能介绍一下为什么效率不行么? 我不是很懂这方面。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/35437

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX