Git Product home page Git Product logo

blackholepy's Introduction

BlackHolePy

BlackHolePy是一个迷你型的DNS(代理)服务器。 它的主要特色:

1) 支持TCP DNS并支持白名单,从而在防止DNS污染的同时支持了内部私有域名解析。
如果你的企业或组织在内部架设了自己的DNS Server,那么可以配置 config.py 里面的 WHITE_DNSS 。
2) 内置了Cache, 带给你飞一般的感觉。尤其是访问国外网站的时候。

运行需求

Python 2.7 或者 PyPy 2.0.2 如果能安装 GEvent 和 dnspython 那就最好了。不装也能跑。 安装GEvent以后,BlackHolePy运行在单线程模式,快捷并节约系统资源。 在 PyPy 2.0.2 下测试通过。但是PyPy的coroutine暂时还没有支持。

运行

sudo ./run.sh (Linux or Mac) 当以root用户运行时,sudo 是不需要的。 ./run.bat (Windows)

然后把你的DNS服务器配置到 127.0.0.1 即可。

感谢

本项目是基于以下两个项目的思路,重新编写的。

https://github.com/henices/Tcp-DNS-proxy
https://github.com/code4craft/blackhole

在此感谢这两个项目的作者!

blackholepy's People

Contributors

code4craft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blackholepy's Issues

服务支持tcp吗?

我在远程服务器上安装了BlackHolePy,发现本地端不能用TCP连接服务器解析。这个tcp支持只是dns server端的前级dns吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.