An ARM32v7 implementation of the ISC BIND DNS server based on Alpine Linux.
5.2K
9.10.4-P8, latestThe included named.conf is a very simple configuration that allows recursive queries from anywhere. No zones are defined (except RFC 1912 recommended localhost zones).
$ docker run -d -p 53:53/udp apcheamitru/arm32v7-bind
You'll want to use your own named.conf and separate data volume for zone files. Here's an example using bind mounts:
$ docker run -d -p 53:53/udp \
-v /data/bind/etc/named.conf:/etc/bind/named.conf:ro \
-v /data/bind/etc/named.conf.zones:/etc/bind/named.conf.zones:ro \
-v /data/bind/zones/pri:/var/bind/pri:ro \
apcheamitru/arm32v7-bind
I included a shell script wrapper for dnssec-signzone. DNSSEC keys should already exist in the same directory as your zone file. To produce a signed version of a zone file:
$ docker run -it --rm \
-v /data/bind/zones/pri:/var/bind/pri \
apcheamitru/arm32v7-bind sign-zone.sh /var/bind/pri/example.com.zone.db
FROM armhf/alpine:3.5
RUN set -ex \
&& addgroup -g 53 named \
&& adduser -H -u 53 -G named -g "named" -h /etc/bind -s /sbin/nologin -D named \
&& apk add --no-cache bind bind-tools \
&& rm /etc/bind/named.conf.* \
&& mkdir /var/bind/data \
&& chown named:named /var/bind/data \
&& chmod 770 /var/bind/data
ADD named.conf /etc/bind/
ADD sign-zone.sh /usr/local/bin/
EXPOSE 53 53/udp
CMD [ "/usr/sbin/named", "-u", "named", "-c", "/etc/bind/named.conf", "-4", "-g" ]
Content type
Image
Digest
Size
4 MB
Last updated
almost 9 years ago
docker pull apcheamitru/arm32v7-bind