BIND (also called "named") is the first, oldest, and most widely deployed DNS solution. It's the de facto standard on Unix-like operating systems. It is currently developed by the Internet Software Consortium.
Alpine Linux is built around musl libc and busybox. This makes it smaller and more resource efficient, the base image only being 5MiB in size. It's a perfect fit for the Docker ecosystem.
Architecture | Tag |
---|---|
amd64/x86_64 | latest-amd64 |
arm32v7/armhf | latest-arm |
aarch64/arm64 | latest-arm64 |
docker run -d \
--name bind9 \
-p 53:53 \
-p 53:53/udp \
-v /path/to/named.conf:/etc/bind/named.conf \
-v /path/to/example.com.zone:/var/bind/pri/example.com.zone \
mjkaye/bind9-alpine
Container images are configured using parameters passed at run-time (such as those above). These parameters are separated by a colon and indicate <host>:<container>
respectively. For example, -p 8053:53
would expose TCP port 53
from inside the container to be accessible from the host's IP on port 8053
. Similarly, when mapping volumes with the -v
option, host paths to left of the colon are mapped to the container paths to the right of the colon.
Parameter | Function |
---|---|
-p 53:53 |
container's BIND will listen on host's TCP port 53 |
-p 53:53/udp |
container's BIND will listen on host's UDP port 53 |
-v :/etc/bind/named.conf |
maps BIND configuration file to specified path on the host |
-v :/var/bind/pri/example.com.zone |
maps zone file between container and host (optional) |
The following directives should be set in your named.conf.
Directive and value | Notes |
---|---|
directory "/var/bind"; |
|
pid-file "/var/run/named/named.pid"; |
|
listen-on { 172.17/16; }; |
if you're running in normal mode |
listen-on { 10/8; }; |
if you're running in swarm mode |
Zone files should be included in the normal manner.
- 9.14.12-r0: - Alpine release 3.12.0; bump BIND version to 9.14.12-r0.
- 9.14.8-r5: - Alpine release 3.11.6; bump BIND version to 9.14.8-r5; support architectures arm32v7, aarch64, and amd64; use --no-cache with apk add.
Thank you for using bind9-alpine.
Do you like this Docker image? Donations help me to devote more time to improving these images. My current focus is testing this in Swarm Mode and improving the documentation. Even the smallest donation is a big help.
bc1q2acfmcwrqc9pzttqgwn6nd0t5cncleue6ukfrs
0x95ab6d374ef0d3a84bb7c767cdf6c77b3b170ba2
XxVEjb1uYFnBGLm59eytUHBDWAYTHeyrET
49couTFdiXHhmodRY49DSt4uwLb5SK9d8QXoUQh6TmMgAmNhWVjtXzri1Qq2AWzTVxaYqbhbthXi1R7hKxM4cTvSFKrFcv1
grs1q4gu2xfg8q448tlajg8grqkrlw9rjvuz29vctmj
nano_1ro9tk49hje9f31r6x869z18rgbiertsc1jgw6siqb6c9cziywk1u4zq766z
TTna1P4yTLueZAunmxAu4p4qYZGQ28VTYE