This project build a bind9 domain name server configured to serve and accept updates for the root domain $BIND9_ROOTDOMAIN env variable.
Use the following ENV when running :
The port 53 must be exposed in tcp and udp to answer DNS requests. The server will accept any query, cache request, this is unsecure, be sure to know what you are doing.
Run with :
# With Forwarders: Bind ports to local docker IP to reduce forwarding risk
sudo docker run --name bind9 --restart=unless-stopped \
-e "BIND9_IP=10.10.12.23" \
-e "BIND9_ROOTDOMAIN=example.com" \
-e "BIND9_KEYNAME=secret" \
-e "BIND9_KEY_ALGORITHM=hmac-md5" \
-e "BIND9_KEY=c2VjcmV0" \
-e "BIND9_FORWARDERS=8.8.8.8;8.8.4.4;" \
-p "172.17.0.1:53:53/udp" \
-p "172.17.0.1:53:53" digitallumberjack/docker-bind9:latest
# No Forwarders - Only For Authority
sudo docker run --name bind9 --restart=unless-stopped \
-e "BIND9_IP=10.10.12.23" \
-e "BIND9_ROOTDOMAIN=example.com" \
-e "BIND9_KEYNAME=secret" \
-e "BIND9_KEY_ALGORITHM=hmac-md5" \
-e "BIND9_KEY=c2VjcmV0" \
-e "BIND9_FORWARDERS=" \
-p 53:53/udp \
-p 53:53 digitallumberjack/docker-bind9:latest
Content type
Image
Digest
Size
110.7 MB
Last updated
over 9 years ago
docker pull justsml/docker-bind9