Unofficial Docker image for zfl9/chinadns-ng
1.7K
This repository provides Docker image for the chinadns-ng project, a high-performance and feature-rich DNS server written in Zig.
This image is automatically built and updated via GitHub Actions whenever a new version of chinadns-ng is released upstream.
Built from the alpine base image. The final image contains nothing but the single chinadns-ng binary, making it extremely small and secure. Provides images for a wide range of platforms, ready for any device.
This image is built for the following platforms:
| Architecture | Docker Platform String |
|---|---|
| x86-64 (v1, v2, v3) | linux/amd64, linux/amd64/v2, linux/amd64/v3 |
| ARM64 (v8) | linux/arm64 |
| ARMv7 | linux/arm/v7 |
| ARMv6 | linux/arm/v6 |
| 32-bit x86 | linux/386 |
docker run CommandTo run the chinadns-ng server and expose the DNS ports on your host machine:
docker run -d --name chinadns-ng --restart=unless-stopped \
-p 53:53/udp \
-p 53:53/tcp \
jenesequa/chinadns-ng:latest
This image uses the chinadns-ng binary as its ENTRYPOINT. Any commands or arguments you append to the docker run command will be passed directly to the binary.
For example, to specify a custom configuration file, you would first need to mount the file into the container:
docker run -d --name chinadns-ng --restart=unless-stopped \
-p 53:53/udp \
-p 53:53/tcp \
jenesequa/chinadns-ng:latest \
-b 0.0.0.0 -l 53 -d chn -c 1.1.1.1
Here is a sample docker-compose.yml configuration:
services:
chinadns-ng:
image: jenesequa/chinadns-ng:latest
container_name: chinadns-ng
restart: unless-stopped
ports:
- "53:53/udp"
- "53:53/tcp"
# To use a custom config file, uncomment the following lines:
# volumes:
# - ./chinadns-ng.conf:/etc/chinadns-ng.conf
command: ["-b", "0.0.0.0", "-l", "53", "-d", "chn", "-c", "1.1.1.1", "-C", "/etc/chinadns-ng.conf"]
Feel free to open an issue or pull request there if you have any suggestions.
Content type
Image
Digest
sha256:0ff7151c7…
Size
3.8 MB
Last updated
about 1 year ago
docker pull jenesequa/chinadns-ng