GithubHelp home page GithubHelp logo

cdns's Introduction

cdns

cdns is an experimental tool to cure your poisoned DNS. The benifits are:

  1. No VPN required
  2. You can use many foreign DNS servers as upstream server.
  3. You can get really good experience if you use fast foreign DNS server as up stream server.

HOW TO BUILD

Prerequisites

The following libraries are required.

  • libevent2
  • argp-standalone (Required for OpenWRT/FreeBSD build only)

Steps

On general linux, run commands below to build with CMake.

mkdir build
cd build
cmake ../
make

A simple Makefile is also provided for build without CMake.(Note: this building method is not to be maintained. It is for easy build on OpenWRT and FreeBSD.)

make

To build with OpenWRT toolchain, read documents here (http://wiki.openwrt.org/doc/devel/crosscompile) for how to cross compile. This is an example:

export PATH=$PATH:/openwrt_cc/staging_dir/host/bin/:/openwrt_cc/staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin/
export STAGING_DIR=/openwrt_cc/staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/
export TARGET_DIR=/openwrt_cc/staging_dir/target-mips_mips32_uClibc-0.9.33.2
export CFLAGS="-mips32 -mtune=mips32 -I$TARGET_DIR/usr/include/ -L$TARGET_DIR/usr/lib/"
make CC=mips-openwrt-linux-gcc LD=mips-openwrt-linux-ld

To build on FreeBSD with gmake:

export CFLAGS="-I/usr/local/include -L/usr/local/lib"
gmake

HOW TO RUN

Run cdns like this:

./cdns -c /path/to/config.json

Check Runtime Information and Statistics

kill -SIGUSR1 `pidof cdns`

Configurations

You can create your configuration file based on 'config.json.example'.

AUTHOR

Zhuofei Wang: [email protected]

cdns's People

Contributors

semigodking avatar

Watchers

 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.