Dockerfile linksBind9 is the original, the classic full-featured DNS server, with DNS authoritative and recursive resolver roles, including the popular dig utility. This is based on the officially supported versions from isc.org.
Bind9's official documentation can be found at [https://kb.isc.org/docs/aa-00648).
You need to properly mount the following volumes:
/etc/bind - for configuration, your named.conf lives here/var/cache/bind - this is the working directory, e.g. options { directory "/var/cache/bind"; };/var/lib/bind - this is usually the place where the secondary zones are placed/var/log - for logfilesNotice:
mkdir -p /data/bind9/{etc/bind,var/cache/bind,var/lib/bind,var/log}
# ubuntu
chown -R 105:root /data/bind9
# alpine
chown -R 100:root /data/bind9
# copy your init config to config dir
docker run --name=bind9 -d \
--restart=always \
--network=host \
-v /data/bind9/etc/bind:/etc/bind \
-v /data/bind9/var/cache/bind:/var/cache/bind \
-v /data/bind9/var/lib/bind:/var/lib/bind \
-v /data/bind9/var/log:/var/log \
wukongcloud/bind9:9.16-ubuntu
Content type
Image
Digest
Size
99.4 MB
Last updated
about 5 years ago
docker pull wukongcloud/bind9