docker run --name=bind9 --restart=always \
--publish 53:53/udp \
--publish 53:53/tcp \
--publish 127.0.0.1:953:953/tcp \
wachira90/bind9:9.18
docker run \
--name=bind9 \
--restart=always \
--publish 53:53/udp \
--publish 53:53/tcp \
--publish 127.0.0.1:953:953/tcp \
--volume /etc/bind \
--volume /var/cache/bind \
--volume /var/lib/bind \
--volume /var/log \
wachira90/bind9:9.18
Here you will actually want to provide the desired configuration in /etc/bind/named.conf and primary zones, etc… (e.g. it’s not magic, you will have to configure it).
options {
directory "/var/cache/bind";
listen-on { 127.0.0.1; };
listen-on-v6 { ::1; };
allow-recursion {
none;
};
allow-transfer {
none;
};
allow-update {
none;
};
};
zone "example.com." {
type primary;
file "/var/lib/bind/db.example.com";
notify explicit;
};
Content type
Image
Digest
sha256:6d4735f65…
Size
102.7 MB
Last updated
almost 4 years ago
docker pull wachira90/bind9:9.18