Git Product home page Git Product logo

czdns's Introduction

Join the chat at https://gitter.im/czdns/community Docker Pulls Docker Stars

Usage

The image is available for multiple architectures, including, amd64, i386, arm64, armv7, armv6.

Just run

docker rm --force czdns
docker run \
	--name czdns \
	--detach \
	--restart always \
	--cap-add NET_ADMIN \
	-p 2053:53/udp \
	yousong/czdns

Or with kubernetes

# Review and edit k8s/czdns-deploy.yaml
kubectl apply -f k8s/czdns-deploy.yaml

Environment variables

Name Default Note
USE_LIST chn Select nameservers based on whether dns names are
- chn, from China
- gfw, parts of gfwlist.txt
CHINA_DNS 114.114.114.114 119.29.29.29 Name servers for resolving dns names from China
OTHER_DNS 8.8.8.8 1.1.1.1 Name servers for resolving dns names from other region
CHINA_NAMES Names separated by whitespace chars. Overrides USE_LIST setting and resolve these names with CHINA_DNS
OTHER_NAMES Names separated by whitespace chars. Overrides USE_LIST setting and resolve these names with OTHER_DNS
EXCLD_NAMES Regex separated by whitespace chars. Overrides USE_LIST setting and exclude generate confs for these names
ZERO_ADDR6 Set --address=/name/:: for names from other region
DNSMASQ_EXTRA_CONF Extra conf to be included by dnsmasq
MAKE_CONFD_TAR Pack up files in /etc/dnsmasq.d/ a tar.gz archive

Example value for DNSMASQ_EXTRA_CONF

cache-size=40960
dns-forward-max=4096
add-subnet=24
address=/ads.com/#

Example settings for CHINA_NAMES, OTHER_NAMES

CHINA_NAMES='github.com centos.org'
OTHER_NAMES='gist.github.com'
EXCLD_NAMES=[^/]*twitter[^/]*

Links

czdns's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

gitter-badger

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.