Protect yourself against DNS poisoning in China.
265
$ sudo docker pull charleswan/chinadns
$ curl https://raw.githubusercontent.com/charleswan/dockerfiles/master/chinadns/docker-compose.yml \
-o docker-compose.yml
$ sudo docker-compose up -d
Set the DNS server to the docker container IP, normally it is 127.0.0.1 or 192.168.99.100 for old docker version.
# UDP
dig @127.0.0.1 www.google.com
# TCP
dig @127.0.0.1 www.youtube.com +tcp
If you like it, you could star it, thank you!
https://github.com/charleswan/dockerfiles/tree/master/chinadns
Content type
Image
Digest
Size
69.8 MB
Last updated
over 7 years ago
docker pull charleswan/chinadns