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
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[^/]*
- czdns docker hub page, https://hub.docker.com/r/yousong/czdns/tags
- neatdns, https://github.com/ustclug/neatdns
- named忽略了forwarder响应中CNAME名字关联的A记录, ustclug/neatdns#12