Giter Site home page Giter Site logo

slanterns-fork / chinadns-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shadowsocks/chinadns-python

0.0 3.0 1.0 443 KB

Protect yourself against DNS poisoning in China.

License: Other

Python 98.74% Batchfile 0.56% DIGITAL Command Language 0.70%

chinadns-python's Introduction

ChinaDNS-Python

PyPI version Build Status

Fix weird things with DNS in China.

ChinaDNS-C is more advanced and well maintained. Please use it instead.

Actually, I'm not working on the Python version anymore. New maintainers are welcome. Just send several pull requests and let me know. You can begin with some features that have already been implemented in ChinaDNS-C.

Install

Usage

Run sudo chinadns on your local machine. ChinaDNS creates a DNS server at 127.0.0.1:53.

Set your DNS to 127.0.0.1 and you're done.

$ nslookup www.youtube.com
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
www.youtube.com	canonical name = youtube-ui.l.google.com.
youtube-ui.l.google.com	canonical name = youtube-ui-china.l.google.com.
Name:	youtube-ui-china.l.google.com
Address: 173.194.72.102
Name:	youtube-ui-china.l.google.com
Address: 173.194.72.101
Name:	youtube-ui-china.l.google.com
Address: 173.194.72.113
Name:	youtube-ui-china.l.google.com
Address: 173.194.72.100
Name:	youtube-ui-china.l.google.com
Address: 173.194.72.139
Name:	youtube-ui-china.l.google.com
Address: 173.194.72.138

Advanced

usage: chinadns [-h] [-b BIND_ADDR] [-p BIND_PORT] [-s DNS]

Forward DNS requests.

optional arguments:
  -h, --help            show this help message and exit
  -b BIND_ADDR, --local_address BIND_ADDR
                        address that listens, default: 127.0.0.1
  -p BIND_PORT, --local_port BIND_PORT
                        port that listens, default: 53
  -s DNS, --dns DNS     DNS server to use, default:
                        114.114.114.114,208.67.222.222,8.8.8.8

License

MIT

Bugs and Issues

Please visit Issue Tracker

Mailing list: http://groups.google.com/group/shadowsocks

chinadns-python's People

Contributors

clowwindy avatar cj1324 avatar reorx avatar

Watchers

James Cloos avatar Slanterns avatar  avatar

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.