Home

Awesome

BJDNS3

BJDNS3 is a simple DNS server which can protect yourself against DNS poisoning for Chinese general user.

Usage

  1. Install Python3:
$ sudo apt install python3 python3-pip
  1. Clone:
$ git clone https://github.com/bieberg0n/bjdns.git
$ cd bjdns/
  1. Install requires:
$ sudo pip3 install -r requirements.txt
  1. Client usage:
$ ./bjdns3 -h
Usage:
  bjdns3 [--debug] [-d <DIRECT_DNS_SERVER>] [-l <LISTEN_IP_PORT>]

Examples:
  bjdns3 -d "119.29.29.29"

Options:
  -h --help             Show this screen
  -d DIRECT_DNS_SERVER  dns server for Chinese host. default: 119.29.29.29, 114.114.114.114
  -l LISTEN_IP_PORT     listen ip and port. default: 0.0.0.0:53
  --debug               debug mode

Run:

$ sudo ./bjdns3
  1. Test:
dig www.twitter.com @127.0.0.1
  1. Now you can set your system's dns to "127.0.0.1".

Thanks

The file whitelist.json is modified from the file in breakwa11's gfw_whitelist project. The project uses MIT license.

The file gfwlist.txt is from gfwlist .The project uses LGPL-2.1 license.

License (GNU GPL3.0)

Copyright (c) 2017-2019 bjong