Groups
Groups
Sign in
Groups
Groups
Google Developers Group - Shanghai
Conversations
Labels
About
Send feedback
Help
分享一个自己写的DNS服务器(大概可以代替SmartHost,你懂的)
143 views
翻墙
Skip to first unread message
黄亿华
unread,
Jun 26, 2013, 8:39:03 PM
6/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gdg-sh...@googlegroups.com
自己用Java写了一个DNS服务器BlackHoleJ,后来某段时间github不能访问之后,就给加了反DNS污染功能。
跟SmartHost差不多,不过这个完全是用户本地部署就可以了,不需要定期去更新。
BlackHoleJ使用的是污染包特征判断的方式,最开始可能没作用,等本地黑名单多了之后就很好用了,有点类似
AntiDnsPollution,只不过
BlackHoleJ功能更全一点,可以进行DNS缓存、hosts风格自定义域名配置等
。
有个朋友用python重写了一个BlackHolePy,用的是TCP进行DNS查询+缓存,TCP不太稳定,初次速度比较慢(200ms~1000ms不等),不过代码比较简单,大家想学习的可以看看。
试用BlackHoleJ:
curl
http://code4craft.github.io/blackhole/install.sh
| sh
sudo /usr/local/blackhole/blackhole.sh start
nslookup
www.dropbox.com
127.0.0.1
最后一步多试几次,就会有正确地址了!
BlackHoleJ:
https://github.com/code4craft/blackhole
BlackHolePy:
https://github.com/linkerlin/BlackHolePy
Zoom.Quiet
unread,
Jun 26, 2013, 9:19:50 PM
6/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gdg-sh...@googlegroups.com
2013/6/27 黄亿华 <
flashs...@gmail.com
>:
> 自己用Java写了一个DNS服务器BlackHoleJ,后来某段时间github不能访问之后,就给加了反DNS污染功能。
>
> 跟SmartHost差不多,不过这个完全是用户本地部署就可以了,不需要定期去更新。
>
> BlackHoleJ使用的是污染包特征判断的方式,最开始可能没作用,等本地黑名单多了之后就很好用了,有点类似AntiDnsPollution,只不过BlackHoleJ功能更全一点,可以进行DNS缓存、hosts风格自定义域名配置等。
>
- 异常好的切入点
- 只是这名字是故意的吧! 这么基情,,,囧rz...
> 有个朋友用python重写了一个BlackHolePy,用的是TCP进行DNS查询+缓存,TCP不太稳定,初次速度比较慢(200ms~1000ms不等),不过代码比较简单,大家想学习的可以看看。
>
> 试用BlackHoleJ:
>
> curl
http://code4craft.github.io/blackhole/install.sh
| sh
> sudo /usr/local/blackhole/blackhole.sh start
> nslookup
www.dropbox.com
127.0.0.1
>
> 最后一步多试几次,就会有正确地址了!
>
> BlackHoleJ:
https://github.com/code4craft/blackhole
> BlackHolePy:
https://github.com/linkerlin/BlackHolePy
>
> --
>
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Google Developers Group - Shanghai”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到
gdg-shanghai...@googlegroups.com
。
> 要向此网上论坛发帖,请发送电子邮件至
gdg-sh...@googlegroups.com
。
> 通过以下网址访问此论坛:
http://groups.google.com/group/gdg-shanghai
。
> 要查看更多选项,请访问
https://groups.google.com/groups/opt_out
。
>
>
--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization be learnning!
俺:
http://about.me/zoom.quiet
许:
http://creativecommons.org/licenses/by-sa/2.5/cn/
James Young
unread,
Jun 26, 2013, 9:30:55 PM
6/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gdg-sh...@googlegroups.com
我在ubuntu13.04下打开后, 报错
Startup fail, 53 port is taken or has no privilege
这个如何解决?
--
黄亿华
unread,
Jun 26, 2013, 10:13:58 PM
6/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gdg-sh...@googlegroups.com
@
zhurizhe
Ubuntu下默认开启了dnsmasq,netstat一下看看是不是这个原因,把那个关掉之后就能启动了。
不太会用google group,
好像多发了几次,不好意思~
在 2013年6月27日星期四UTC+8上午9时30分55秒,zhurizhe写道:
Reply all
Reply to author
Forward
0 new messages